/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/ |
H A D | memutil.cc | 36 char* memdup(const char* s, size_t slen) { in memdup() argument 38 if ((copy = malloc(slen)) == nullptr) return nullptr; in memdup() 39 memcpy(copy, s, slen); in memdup() 43 char* memrchr(const char* s, int c, size_t slen) { in memrchr() argument 44 for (const char* e = s + slen - 1; e >= s; e--) { in memrchr() 50 size_t memspn(const char* s, size_t slen, const char* accept) { in memspn() argument 57 if (slen-- == 0) return p - 1 - s; in memspn() 63 size_t memcspn(const char* s, size_t slen, const char* reject) { in memcspn() argument 68 while (slen-- != 0) { in memcspn() 76 char* mempbrk(const char* s, size_t slen, cons argument [all...] |
H A D | memutil.h | 81 char* memdup(const char* s, size_t slen); 82 char* memrchr(const char* s, int c, size_t slen); 83 size_t memspn(const char* s, size_t slen, const char* accept); 84 size_t memcspn(const char* s, size_t slen, const char* reject); 85 char* mempbrk(const char* s, size_t slen, const char* accept);
|
/third_party/mbedtls/library/ |
H A D | base64.c | 62 const unsigned char *src, size_t slen) in mbedtls_base64_encode() 68 if (slen == 0) { in mbedtls_base64_encode() 73 n = slen / 3 + (slen % 3 != 0); in mbedtls_base64_encode() 87 n = (slen / 3) * 3; in mbedtls_base64_encode() 102 if (i < slen) { in mbedtls_base64_encode() 104 C2 = ((i + 1) < slen) ? *src++ : 0; in mbedtls_base64_encode() 110 if ((i + 1) < slen) { in mbedtls_base64_encode() 129 const unsigned char *src, size_t slen) in mbedtls_base64_decode() 140 for (i = n = 0; i < slen; in mbedtls_base64_decode() 61 mbedtls_base64_encode(unsigned char *dst, size_t dlen, size_t *olen, const unsigned char *src, size_t slen) mbedtls_base64_encode() argument 128 mbedtls_base64_decode(unsigned char *dst, size_t dlen, size_t *olen, const unsigned char *src, size_t slen) mbedtls_base64_decode() argument [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/p2p/ |
H A D | p2p_sd.c | 335 u16 slen; in p2p_rx_gas_initial_req() local 365 slen = *pos++; in p2p_rx_gas_initial_req() 366 if (slen > end - pos || slen < 2) { in p2p_rx_gas_initial_req() 370 next = pos + slen; in p2p_rx_gas_initial_req() 383 slen = WPA_GET_LE16(pos); in p2p_rx_gas_initial_req() 385 if (slen > end - pos) in p2p_rx_gas_initial_req() 387 end = pos + slen; in p2p_rx_gas_initial_req() 398 slen = WPA_GET_LE16(pos); in p2p_rx_gas_initial_req() 400 if (slen > en in p2p_rx_gas_initial_req() 491 u16 slen; p2p_rx_gas_initial_resp() local 705 u16 slen; p2p_rx_gas_comeback_resp() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/p2p/ |
H A D | p2p_sd.c | 335 u16 slen; in p2p_rx_gas_initial_req() local 365 slen = *pos++; in p2p_rx_gas_initial_req() 366 if (slen > end - pos || slen < 2) { in p2p_rx_gas_initial_req() 370 next = pos + slen; in p2p_rx_gas_initial_req() 383 slen = WPA_GET_LE16(pos); in p2p_rx_gas_initial_req() 385 if (slen > end - pos) in p2p_rx_gas_initial_req() 387 end = pos + slen; in p2p_rx_gas_initial_req() 398 slen = WPA_GET_LE16(pos); in p2p_rx_gas_initial_req() 400 if (slen > en in p2p_rx_gas_initial_req() 491 u16 slen; p2p_rx_gas_initial_resp() local 705 u16 slen; p2p_rx_gas_comeback_resp() local [all...] |
/third_party/node/deps/ngtcp2/nghttp3/lib/ |
H A D | nghttp3_http.c | 607 nghttp3_ssize slen; in sf_parse_params() local 614 slen = sf_parse_key(p, end); in sf_parse_params() 615 if (slen < 0) { in sf_parse_params() 619 p += slen; in sf_parse_params() 626 slen = sf_parse_bare_item(NULL, p, end); in sf_parse_params() 627 if (slen < 0) { in sf_parse_params() 631 p += slen; in sf_parse_params() 641 nghttp3_ssize slen; in sf_parse_item() local 643 slen = sf_parse_bare_item(dest, p, end); in sf_parse_item() 644 if (slen < in sf_parse_item() 669 nghttp3_ssize slen; sf_parse_inner_list() local 747 nghttp3_ssize slen; nghttp3_http_parse_priority() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/ |
H A D | hs20_supplicant.c | 462 size_t slen, u8 dialog_token) in hs20_process_icon_binary_file() 473 icon->image = os_memdup(pos, slen); in hs20_process_icon_binary_file() 476 icon->image_len = slen; in hs20_process_icon_binary_file() 489 if (slen < 4) { in hs20_process_icon_binary_file() 501 slen--; in hs20_process_icon_binary_file() 503 if ((size_t) 1 + pos[0] > slen) { in hs20_process_icon_binary_file() 512 slen -= 1 + pos[0]; in hs20_process_icon_binary_file() 515 if (slen < 2) { in hs20_process_icon_binary_file() 524 slen -= 2; in hs20_process_icon_binary_file() 526 if (data_len > slen) { in hs20_process_icon_binary_file() 460 hs20_process_icon_binary_file(struct wpa_supplicant *wpa_s, const u8 *sa, const u8 *pos, size_t slen, u8 dialog_token) hs20_process_icon_binary_file() argument 598 hs20_parse_rx_hs20_anqp_resp(struct wpa_supplicant *wpa_s, struct wpa_bss *bss, const u8 *sa, const u8 *data, size_t slen, u8 dialog_token) hs20_parse_rx_hs20_anqp_resp() argument 918 u8 slen; hs20_osu_add_prov() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/ |
H A D | hs20_supplicant.c | 461 size_t slen, u8 dialog_token) in hs20_process_icon_binary_file() 472 icon->image = os_memdup(pos, slen); in hs20_process_icon_binary_file() 475 icon->image_len = slen; in hs20_process_icon_binary_file() 488 if (slen < 4) { in hs20_process_icon_binary_file() 498 slen--; in hs20_process_icon_binary_file() 500 if ((size_t) 1 + pos[0] > slen) { in hs20_process_icon_binary_file() 507 slen -= 1 + pos[0]; in hs20_process_icon_binary_file() 510 if (slen < 2) { in hs20_process_icon_binary_file() 517 slen -= 2; in hs20_process_icon_binary_file() 519 if (data_len > slen) { in hs20_process_icon_binary_file() 459 hs20_process_icon_binary_file(struct wpa_supplicant *wpa_s, const u8 *sa, const u8 *pos, size_t slen, u8 dialog_token) hs20_process_icon_binary_file() argument 589 hs20_parse_rx_hs20_anqp_resp(struct wpa_supplicant *wpa_s, struct wpa_bss *bss, const u8 *sa, const u8 *data, size_t slen, u8 dialog_token) hs20_parse_rx_hs20_anqp_resp() argument [all...] |
/third_party/node/deps/base64/base64/lib/arch/generic/32/ |
H A D | dec_loop.c | 33 dec_loop_generic_32 (const uint8_t **s, size_t *slen, uint8_t **o, size_t *olen) in dec_loop_generic_32() argument 35 if (*slen < 8) { in dec_loop_generic_32() 43 size_t rounds = (*slen - 4) / 4; in dec_loop_generic_32() 45 *slen -= rounds * 4; // 4 bytes consumed per round in dec_loop_generic_32() 84 *slen += rounds * 4; in dec_loop_generic_32()
|
H A D | enc_loop.c | 27 enc_loop_generic_32 (const uint8_t **s, size_t *slen, uint8_t **o, size_t *olen) in enc_loop_generic_32() argument 29 if (*slen < 4) { in enc_loop_generic_32() 37 size_t rounds = (*slen - 1) / 3; in enc_loop_generic_32() 39 *slen -= rounds * 3; // 3 bytes consumed per round in enc_loop_generic_32()
|
/third_party/node/deps/base64/base64/lib/arch/neon32/ |
H A D | codec.c | 59 enc_loop_neon32(&s, &slen, &o, &olen); in BASE64_ENC_FUNCTION() 60 enc_loop_generic_32(&s, &slen, &o, &olen); in BASE64_ENC_FUNCTION() 71 dec_loop_neon32(&s, &slen, &o, &olen); in BASE64_DEC_FUNCTION() 72 dec_loop_generic_32(&s, &slen, &o, &olen); in BASE64_DEC_FUNCTION()
|
H A D | dec_loop.c | 56 dec_loop_neon32 (const uint8_t **s, size_t *slen, uint8_t **o, size_t *olen) in dec_loop_neon32() argument 58 if (*slen < 64) { in dec_loop_neon32() 65 size_t rounds = *slen / 64; in dec_loop_neon32() 67 *slen -= rounds * 64; // 64 bytes consumed per round in dec_loop_neon32() 104 *slen += rounds * 64; in dec_loop_neon32()
|
/third_party/ltp/testcases/network/rpc/rpc-tirpc/tests_pack/lib/ |
H A D | librpc-tirpc.c | 32 socklen_t slen; in bound_socket() local 39 slen = sizeof(*addr4); in bound_socket() 46 slen = sizeof(*addr6); in bound_socket() 63 if (bind(sock, (struct sockaddr *)&addr, slen) < 0) { in bound_socket()
|
/third_party/node/deps/base64/base64/lib/arch/neon64/ |
H A D | codec.c | 79 enc_loop_neon64(&s, &slen, &o, &olen); in BASE64_ENC_FUNCTION() 80 enc_loop_generic_64(&s, &slen, &o, &olen); in BASE64_ENC_FUNCTION() 91 dec_loop_neon64(&s, &slen, &o, &olen); in BASE64_DEC_FUNCTION() 92 dec_loop_generic_32(&s, &slen, &o, &olen); in BASE64_DEC_FUNCTION()
|
/third_party/node/deps/base64/base64/lib/arch/avx512/ |
H A D | enc_loop.c | 16 enc_loop_avx512 (const uint8_t **s, size_t *slen, uint8_t **o, size_t *olen) in enc_loop_avx512() argument 18 if (*slen < 64) { in enc_loop_avx512() 26 size_t rounds = (*slen - 24) / 48; in enc_loop_avx512() 28 *slen -= rounds * 48; // 48 bytes consumed per round in enc_loop_avx512()
|
/third_party/node/deps/base64/base64/lib/arch/ssse3/ |
H A D | enc_loop.c | 21 enc_loop_ssse3 (const uint8_t **s, size_t *slen, uint8_t **o, size_t *olen) in enc_loop_ssse3() argument 23 if (*slen < 16) { in enc_loop_ssse3() 31 size_t rounds = (*slen - 4) / 12; in enc_loop_ssse3() 33 *slen -= rounds * 12; // 12 bytes consumed per round in enc_loop_ssse3()
|
H A D | dec_loop.c | 120 dec_loop_ssse3 (const uint8_t **s, size_t *slen, uint8_t **o, size_t *olen) in dec_loop_ssse3() argument 122 if (*slen < 24) { in dec_loop_ssse3() 130 size_t rounds = (*slen - 8) / 16; in dec_loop_ssse3() 132 *slen -= rounds * 16; // 16 bytes consumed per round in dec_loop_ssse3() 171 *slen += rounds * 16; in dec_loop_ssse3()
|
/third_party/libinput/src/ |
H A D | util-strings.h | 219 size_t slen = strlen(str); in safe_atod() local 223 for (size_t i = 0; i < slen; i++) { in safe_atod() 429 size_t slen = strlen(str); in strendswith() 433 if (slen == 0 || suffixlen == 0 || suffixlen > slen) in strendswith() 436 offset = slen - suffixlen; in strendswith() 470 size_t slen = min(strlen(str), 512); in str_sanitize() 471 char *sanitized = zalloc(2 * slen + 1); in str_sanitize() 475 for (size_t i = 0; i < slen; i++) { in str_sanitize()
|
H A D | util-strings.c | 171 size_t slen = 0; in strv_join() local 181 slen += strlen(*s); in strv_join() 184 assert(slen < 1000); in strv_join() 189 slen += (count - 1) * strlen(joiner); in strv_join() 191 str = zalloc(slen + 1); /* trailing \0 */ in strv_join()
|
/third_party/libwebsockets/lib/secure-streams/system/auth-sigv4/ |
H A D | sign.c | 502 size_t slen; in lws_aws_filesystem_credentials_helper() local 521 slen = (size_t)(rd - lws_ptr_diff(str, line)); in lws_aws_filesystem_credentials_helper() 523 while (slen && *str == ' ') { in lws_aws_filesystem_credentials_helper() 525 slen--; in lws_aws_filesystem_credentials_helper() 528 while (slen && (str[slen - 1] == '\r' || in lws_aws_filesystem_credentials_helper() 529 str[slen - 1] == '\n' || in lws_aws_filesystem_credentials_helper() 530 str[slen - 1] == ' ')) in lws_aws_filesystem_credentials_helper() 531 slen--; in lws_aws_filesystem_credentials_helper() 533 val = malloc(slen in lws_aws_filesystem_credentials_helper() [all...] |
/third_party/node/deps/base64/base64/lib/arch/avx2/ |
H A D | dec_loop.c | 57 dec_loop_avx2 (const uint8_t **s, size_t *slen, uint8_t **o, size_t *olen) in dec_loop_avx2() argument 59 if (*slen < 45) { in dec_loop_avx2() 67 size_t rounds = (*slen - 13) / 32; in dec_loop_avx2() 69 *slen -= rounds * 32; // 32 bytes consumed per round in dec_loop_avx2() 108 *slen += rounds * 32; in dec_loop_avx2()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/ |
H A D | wpa_debug.c | 345 size_t slen = len; in _wpa_hexdump() 351 if (slen > 32) in _wpa_hexdump() 352 slen = 32; in _wpa_hexdump() 353 strbuf = os_malloc(1 + 3 * slen); in _wpa_hexdump() 360 for (i = 0; i < slen; i++) in _wpa_hexdump() 371 len > slen ? " ..." : ""); in _wpa_hexdump() 372 bin_clear_free(strbuf, 1 + 3 * slen); in _wpa_hexdump() 401 size_t slen = len; in _wpa_hexdump() 408 if (slen > 32) in _wpa_hexdump() 409 slen in _wpa_hexdump() [all...] |
/third_party/node/deps/base64/base64/lib/arch/generic/ |
H A D | codec.c | 25 enc_loop_generic_32(&s, &slen, &o, &olen); in BASE64_ENC_FUNCTION() 27 enc_loop_generic_64(&s, &slen, &o, &olen); in BASE64_ENC_FUNCTION() 36 dec_loop_generic_32(&s, &slen, &o, &olen); in BASE64_DEC_FUNCTION()
|
/third_party/node/deps/base64/base64/lib/arch/avx/ |
H A D | codec.c | 46 enc_loop_avx(&s, &slen, &o, &olen); in BASE64_ENC_FUNCTION() 48 enc_loop_ssse3(&s, &slen, &o, &olen); in BASE64_ENC_FUNCTION() 61 dec_loop_ssse3(&s, &slen, &o, &olen); in BASE64_DEC_FUNCTION()
|
/third_party/node/deps/base64/base64/lib/arch/generic/64/ |
H A D | enc_loop.c | 31 enc_loop_generic_64 (const uint8_t **s, size_t *slen, uint8_t **o, size_t *olen) in enc_loop_generic_64() argument 33 if (*slen < 8) { in enc_loop_generic_64() 41 size_t rounds = (*slen - 2) / 6; in enc_loop_generic_64() 43 *slen -= rounds * 6; // 6 bytes consumed per round in enc_loop_generic_64()
|