Home
last modified time | relevance | path

Searched refs:DEBUGASSERT (Results 1 – 25 of 50) sorted by relevance

12

/external/curl/lib/
Dwarnless.c131 DEBUGASSERT(ulnum <= (unsigned long) CURL_MASK_USHORT); in curlx_ultous()
150 DEBUGASSERT(ulnum <= (unsigned long) CURL_MASK_UCHAR); in curlx_ultouc()
169 DEBUGASSERT(ulnum <= (unsigned long) CURL_MASK_SINT); in curlx_ultosi()
191 DEBUGASSERT(uznum <= (size_t) CURL_MASK_SCOFFT); in curlx_uztoso()
210 DEBUGASSERT(uznum <= (size_t) CURL_MASK_SINT); in curlx_uztosi()
230 DEBUGASSERT(uznum <= (size_t) CURL_MASK_ULONG); in curlx_uztoul()
251 DEBUGASSERT(uznum <= (size_t) CURL_MASK_UINT); in curlx_uztoui()
271 DEBUGASSERT(slnum >= 0); in curlx_sltosi()
273 DEBUGASSERT((unsigned long) slnum <= (unsigned long) CURL_MASK_SINT); in curlx_sltosi()
293 DEBUGASSERT(slnum >= 0); in curlx_sltoui()
[all …]
Dmemdebug.c166 DEBUGASSERT(wantedsize != 0); in curl_dbg_malloc()
195 DEBUGASSERT(wanted_elements != 0); in curl_dbg_calloc()
196 DEBUGASSERT(wanted_size != 0); in curl_dbg_calloc()
222 DEBUGASSERT(str != NULL); in curl_dbg_strdup()
246 DEBUGASSERT(str != NULL); in curl_dbg_wcsdup()
275 DEBUGASSERT(wantedsize != 0); in curl_dbg_realloc()
464 DEBUGASSERT(file != NULL); in curl_dbg_fclose()
Dpingpong.c177 DEBUGASSERT(pp->sendleft == 0); in Curl_pp_vsendf()
178 DEBUGASSERT(pp->sendsize == 0); in Curl_pp_vsendf()
179 DEBUGASSERT(pp->sendthis == NULL); in Curl_pp_vsendf()
215 DEBUGASSERT(data_sec > PROT_NONE && data_sec < PROT_LAST); in Curl_pp_vsendf()
321 DEBUGASSERT((ptr + data->set.buffer_size - pp->nread_resp) <= in Curl_pp_readresp()
327 DEBUGASSERT(prot > PROT_NONE && prot < PROT_LAST); in Curl_pp_readresp()
Daltsvc.c269 DEBUGASSERT(asi); in Curl_altsvc_load()
279 DEBUGASSERT(asi); in Curl_altsvc_ctrl()
421 DEBUGASSERT(asi); in Curl_altsvc_parse()
546 DEBUGASSERT(asi); in Curl_altsvc_lookup()
547 DEBUGASSERT(srchost); in Curl_altsvc_lookup()
548 DEBUGASSERT(dsthost); in Curl_altsvc_lookup()
Dsecurity.c108 DEBUGASSERT(0); in level_to_char()
286 DEBUGASSERT(prot_level > PROT_NONE && prot_level < PROT_LAST); in do_sec_send()
374 DEBUGASSERT(level > PROT_NONE && level < PROT_LAST); in Curl_sec_read_msg()
423 DEBUGASSERT(level > PROT_NONE && level < PROT_LAST); in sec_set_protection_level()
479 DEBUGASSERT(l > PROT_NONE && l < PROT_LAST); in Curl_sec_request_prot()
542 DEBUGASSERT(ret == AUTH_OK); in choose_mech()
Dsendf.c172 DEBUGASSERT(psnd->bindsock == sockfd); in pre_receive_plain()
192 DEBUGASSERT(psnd->allocated_size > 0); in get_pre_recved()
193 DEBUGASSERT(psnd->recv_size <= psnd->allocated_size); in get_pre_recved()
194 DEBUGASSERT(psnd->recv_processed <= psnd->recv_size); in get_pre_recved()
198 DEBUGASSERT(psnd->bindsock == conn->sock[num]); in get_pre_recved()
512 DEBUGASSERT(i < 3); in pausewrite()
663 DEBUGASSERT(type <= 3); in Curl_client_write()
Dasyn-thread.c221 DEBUGASSERT(hints); in init_thread_sync_data()
471 DEBUGASSERT(conn && td); in thread_wait_resolv()
472 DEBUGASSERT(td->thread_hnd != curl_thread_t_null); in thread_wait_resolv()
480 DEBUGASSERT(0); in thread_wait_resolv()
551 DEBUGASSERT(td); in Curl_resolver_is_resolved()
Drand.c124 DEBUGASSERT(num > 0); in Curl_rand()
158 DEBUGASSERT(num > 1); in Curl_rand_hex()
Dhttp2.c485 DEBUGASSERT(httpc->drain_total >= data->state.drain); in drained_transfer()
498 DEBUGASSERT(httpc->drain_total >= data->state.drain); in drain_this()
609 DEBUGASSERT(0); in push_promise()
778 DEBUGASSERT(stream_id); /* should never be a zero stream ID here */ in on_data_chunk_recv()
867 DEBUGASSERT(0); in on_stream_close()
952 DEBUGASSERT(stream_id); /* should never be a zero stream ID here */ in on_header()
1053 DEBUGASSERT(stream->status_code != -1); in on_header()
1225 DEBUGASSERT(0); in Curl_http2_done()
1454 DEBUGASSERT(data->state.drain == 0); in http2_handle_stream_close()
1624 DEBUGASSERT(httpc->pause_stream_id == stream->stream_id); in http2_recv()
[all …]
Dconncache.c48 DEBUGASSERT(!(x)->state.conncache_lock); \
53 DEBUGASSERT((x)->state.conncache_lock); \
75 DEBUGASSERT(*cb_ptr == NULL); in bundle_create()
175 DEBUGASSERT(len > 32); in hashkey()
Dhttp_ntlm.c134 DEBUGASSERT(conn); in Curl_output_ntlm()
135 DEBUGASSERT(conn->data); in Curl_output_ntlm()
Dcurl_setup_once.h399 #define DEBUGASSERT(x) assert(x) macro
401 #define DEBUGASSERT(x) do { } WHILE_FALSE macro
Dwildcard.c57 DEBUGASSERT(wc->protdata == NULL); in Curl_wildcard_dtor()
Durl.c637 DEBUGASSERT(psnd->allocated_size > 0); in conn_reset_postponed_data()
638 DEBUGASSERT(psnd->recv_size <= psnd->allocated_size); in conn_reset_postponed_data()
639 DEBUGASSERT(psnd->recv_size ? in conn_reset_postponed_data()
642 DEBUGASSERT(psnd->bindsock != CURL_SOCKET_BAD); in conn_reset_postponed_data()
653 DEBUGASSERT(psnd->allocated_size == 0); in conn_reset_postponed_data()
654 DEBUGASSERT(psnd->recv_size == 0); in conn_reset_postponed_data()
655 DEBUGASSERT(psnd->recv_processed == 0); in conn_reset_postponed_data()
656 DEBUGASSERT(psnd->bindsock == CURL_SOCKET_BAD); in conn_reset_postponed_data()
677 DEBUGASSERT(conn->data); in conn_shutdown()
917 DEBUGASSERT(GOOD_EASY_HANDLE(e)); in gethandleathead()
[all …]
Dhttp_proxy.c54 DEBUGASSERT(conn->http_proxy.proxytype == CURLPROXY_HTTPS); in https_proxy_connect()
154 DEBUGASSERT(!conn->connect_state); in connect_init()
162 DEBUGASSERT(conn->connect_state); in connect_init()
Dslist.c64 DEBUGASSERT(data); in Curl_slist_append_nodup()
Dcurl_ntlm_wb.c355 DEBUGASSERT(conn); in Curl_output_ntlm_wb()
356 DEBUGASSERT(conn->data); in Curl_output_ntlm_wb()
Dgopher.c92 DEBUGASSERT(path); in gopher_do()
Dtransfer.c512 DEBUGASSERT(conn->read_pos >= thismuch); in read_rewind()
1437 DEBUGASSERT(conn->sockfd != CURL_SOCKET_BAD); in Curl_single_getsock()
1453 DEBUGASSERT(conn->writesockfd != CURL_SOCKET_BAD); in Curl_single_getsock()
1655 DEBUGASSERT(data->state.uh); in Curl_follow()
1884 DEBUGASSERT(conn != NULL); in Curl_setup_transfer()
1885 DEBUGASSERT((sockindex <= 1) && (sockindex >= -1)); in Curl_setup_transfer()
Dcurl_addrinfo.c294 DEBUGASSERT((he->h_name != NULL) && (he->h_addr_list != NULL)); in Curl_he2ai()
414 DEBUGASSERT(inaddr && hostname); in Curl_ip2addr()
Dhttp.c164 DEBUGASSERT(data->req.protop == NULL); in http_setup_conn()
746 DEBUGASSERT(data); in Curl_http_output_auth()
860 DEBUGASSERT(!data->req.newurl); in Curl_http_input_auth()
998 DEBUGASSERT(conn); in http_should_fail()
1000 DEBUGASSERT(data); in http_should_fail()
1027 DEBUGASSERT((httpcode == 401) || (httpcode == 407)); in http_should_fail()
1158 DEBUGASSERT(socketindex <= SECONDARYSOCKET); in Curl_add_buffer_send()
1171 DEBUGASSERT(size > included_body_bytes); in Curl_add_buffer_send()
1537 DEBUGASSERT((conn) && (conn->handler->flags & PROTOPT_SSL)); in https_connecting()
1994 DEBUGASSERT(http); in Curl_http()
[all …]
Dinet_ntop.c55 DEBUGASSERT(size >= 16); in inet_ntop4()
/external/curl/lib/vauth/
Dntlm.c767 DEBUGASSERT(size == 64); in Curl_auth_create_ntlm_type3_message()
768 DEBUGASSERT(size == (size_t)lmrespoff); in Curl_auth_create_ntlm_type3_message()
787 DEBUGASSERT(size == (size_t)ntrespoff); in Curl_auth_create_ntlm_type3_message()
814 DEBUGASSERT(size == domoff); in Curl_auth_create_ntlm_type3_message()
822 DEBUGASSERT(size == useroff); in Curl_auth_create_ntlm_type3_message()
830 DEBUGASSERT(size == hostoff); in Curl_auth_create_ntlm_type3_message()
/external/curl/lib/vtls/
Dvtls.c212 DEBUGASSERT(conn->bits.proxy_ssl_connected[sockindex]); in ssl_connect_init_proxy()
324 DEBUGASSERT(SSL_SET_OPTION(primary.sessionid)); in Curl_ssl_getsessionid()
428 DEBUGASSERT(SSL_SET_OPTION(primary.sessionid)); in Curl_ssl_addsessionid()
554 DEBUGASSERT((sockindex <= 1) && (sockindex >= -1)); in Curl_ssl_close()
Dmesalink.c307 DEBUGASSERT(ssl_connect_3 == connssl->connecting_state); in mesalink_connect_step3()
585 DEBUGASSERT(done); in Curl_mesalink_connect()

12