Home
last modified time | relevance | path

Searched refs:slen (Results 1 – 25 of 90) sorted by relevance

1234

/external/wpa_supplicant_8/src/p2p/
Dp2p_sd.c335 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 > end - pos || slen < 3 + 1) { in p2p_rx_gas_initial_req()
489 u16 slen; in p2p_rx_gas_initial_resp() local
[all …]
/external/jemalloc/src/
Dutil.c329 #define APPEND_S(s, slen) do { \ in malloc_vsnprintf() argument
331 size_t cpylen = (slen <= size - i) ? slen : size - i; \ in malloc_vsnprintf()
334 i += slen; \ in malloc_vsnprintf()
336 #define APPEND_PADDED_S(s, slen, width, left_justify) do { \ in malloc_vsnprintf() argument
338 size_t pad_len = (width == -1) ? 0 : ((slen < (size_t)width) ? \ in malloc_vsnprintf()
339 (size_t)width - slen : 0); \ in malloc_vsnprintf()
346 APPEND_S(s, slen); \ in malloc_vsnprintf()
502 size_t slen; in malloc_vsnprintf() local
514 ' ' : '-')), buf, &slen); in malloc_vsnprintf()
515 APPEND_PADDED_S(s, slen, width, left_justify); in malloc_vsnprintf()
[all …]
/external/wpa_supplicant_8/wpa_supplicant/
Dhs20_supplicant.c381 size_t slen, u8 dialog_token) in hs20_process_icon_binary_file() argument
392 icon->image = os_malloc(slen); in hs20_process_icon_binary_file()
395 os_memcpy(icon->image, pos, slen); in hs20_process_icon_binary_file()
396 icon->image_len = slen; in hs20_process_icon_binary_file()
409 if (slen < 4) { in hs20_process_icon_binary_file()
419 slen--; in hs20_process_icon_binary_file()
421 if ((size_t) 1 + pos[0] > slen) { in hs20_process_icon_binary_file()
428 slen -= 1 + pos[0]; in hs20_process_icon_binary_file()
431 if (slen < 2) { in hs20_process_icon_binary_file()
438 slen -= 2; in hs20_process_icon_binary_file()
[all …]
/external/iputils/ninfod/
Dninfod_name.c209 static int compare_dnsname(const char *s, size_t slen, in compare_dnsname() argument
214 if (slen < 1 || nlen < 1) in compare_dnsname()
217 if (slen == nlen && memcmp(s, n, slen) == 0) in compare_dnsname()
219 if (*(s0 + slen - 1) || *(n0 + nlen - 1)) in compare_dnsname()
221 while (s < s0 + slen && n < n0 + nlen) { in compare_dnsname()
224 if (s + *s + 1 > s0 + slen || n + *n + 1 > n0 + nlen) in compare_dnsname()
227 if (s == s0 + slen - 1) in compare_dnsname()
229 else if (s + 1 == s0 + slen - 1) in compare_dnsname()
/external/guava/guava/src/com/google/common/escape/
DCharEscaper.java82 int slen = s.length(); in escapeSlow() local
92 for (; index < slen; index++) { in escapeSlow()
108 destSize = sizeNeeded + DEST_PAD_MULTIPLIER * (slen - index); in escapeSlow()
127 int charsLeft = slen - lastEscape; in escapeSlow()
135 s.getChars(lastEscape, slen, dest, destIndex); in escapeSlow()
/external/iptables/extensions/
Dlibxt_string.c94 int i=0, slen, sindex=0, schar; in parse_hex_string() local
98 slen = strlen(s); in parse_hex_string()
100 if (slen == 0) { in parse_hex_string()
105 while (i < slen) { in parse_hex_string()
120 if (i+1 >= slen) in parse_hex_string()
127 if (i+1 >= slen) { in parse_hex_string()
135 if (i+1 >= slen) { in parse_hex_string()
139 if (i+2 >= slen) { in parse_hex_string()
/external/chromium-trace/catapult/telemetry/third_party/webpagereplay/third_party/dns/rdtypes/ANY/
DNSEC3PARAM.py70 (algorithm, flags, iterations, slen) = struct.unpack('!BBHB',
74 salt = wire[current : current + slen]
75 current += slen
76 rdlen -= slen
DNSEC3.py144 (algorithm, flags, iterations, slen) = struct.unpack('!BBHB',
148 salt = wire[current : current + slen]
149 current += slen
150 rdlen -= slen
/external/autotest/site_utils/
Dlog_socket_server.py42 slen = struct.unpack('>L', chunk)[0]
43 chunk = self.connection.recv(slen)
44 while len(chunk) < slen:
45 chunk = chunk + self.connection.recv(slen - len(chunk))
/external/boringssl/src/crypto/asn1/
Da_d2i_fp.c193 c.inf=ASN1_get_object(&(c.p),&(c.slen),&(c.tag),&(c.xclass), in asn1_d2i_read_bio()
219 else if (eos && (c.slen == 0) && (c.tag == V_ASN1_EOC)) in asn1_d2i_read_bio()
231 want=c.slen; in asn1_d2i_read_bio()
260 if (off + c.slen < off) in asn1_d2i_read_bio()
265 off+=c.slen; in asn1_d2i_read_bio()
Df_int.c108 int num=0,slen=0,first=1; in a2i_ASN1_INTEGER() local
156 if (num+i > slen) in a2i_ASN1_INTEGER()
162 sp=OPENSSL_realloc_clean(s,slen,num+i*2); in a2i_ASN1_INTEGER()
169 slen=num+i*2; in a2i_ASN1_INTEGER()
Df_string.c103 int num=0,slen=0,first=1; in a2i_ASN1_STRING() local
149 if (num+i > slen) in a2i_ASN1_STRING()
163 slen=num+i*2; in a2i_ASN1_STRING()
Df_enum.c103 int num=0,slen=0,first=1; in a2i_ASN1_ENUMERATED() local
151 if (num+i > slen) in a2i_ASN1_ENUMERATED()
165 slen=num+i*2; in a2i_ASN1_ENUMERATED()
/external/boringssl/src/crypto/pem/
Dpem_pkey.c83 int slen; in PEM_read_bio_PrivateKey() local
125 } else if ((slen = pem_check_suffix(nm, "PRIVATE KEY")) > 0) in PEM_read_bio_PrivateKey()
128 ameth = EVP_PKEY_asn1_find_str(NULL, nm, slen); in PEM_read_bio_PrivateKey()
184 int slen; in PEM_read_bio_Parameters() local
192 if ((slen = pem_check_suffix(nm, "PARAMETERS")) > 0) in PEM_read_bio_Parameters()
197 if (!set_pkey_type_from_str(ret, nm, slen) in PEM_read_bio_Parameters()
/external/icu/icu4c/source/test/intltest/
Dmnkytst.cpp82 int32_t slen = checkValue((rand() - source.length()) % source.length()); in TestCollationKey() local
86 source.extract(MIN(s, slen), MAX(s, slen), subs); in TestCollationKey()
157 int32_t slen = checkValue((rand() - source.length()) % source.length()); in TestCompare() local
161 source.extract(MIN(s, slen), MAX(s, slen), subs); in TestCompare()
/external/selinux/libselinux/src/
Dlabel.c51 if (strncmp(src, ptr->src, ptr->slen) == 0 ) { in selabel_sub()
52 if (src[ptr->slen] == '/' || in selabel_sub()
53 src[ptr->slen] == 0) { in selabel_sub()
54 if ((src[ptr->slen] == '/') && in selabel_sub()
56 len = ptr->slen + 1; in selabel_sub()
58 len = ptr->slen; in selabel_sub()
121 sub->slen = strlen(src); in selabel_subs_init()
/external/ppp/pppd/
Dcbcp.c371 int slen; local
383 slen = strlen(us->us_number);
384 if (slen > 250) {
386 slen = 250;
389 len = 3 + 1 + slen + 1;
393 BCOPY(us->us_number, bufp, slen + 1);
/external/mksh/src/
Deval.c368 int slen = 0; in expand() local
372 type = varsub(&x, varname, sp, &stype, &slen); in expand()
419 sp += slen; in expand()
1063 int slen; in varsub() local
1145 c = word[slen = 0] == CHAR ? word[1] : 0; in varsub()
1147 slen += 2; in varsub()
1149 c = word[slen + 0] == CHAR ? word[slen + 1] : 0; in varsub()
1152 slen += 2; in varsub()
1154 if (word[slen] == ADELIM) { in varsub()
1155 slen += 2; in varsub()
[all …]
/external/wpa_supplicant_8/src/tls/
Dtlsv1_common.c421 u16 slen; in tls_verify_signature() local
428 slen = WPA_GET_BE16(pos); in tls_verify_signature()
430 if (end - pos < slen) { in tls_verify_signature()
434 if (end - pos > slen) { in tls_verify_signature()
436 pos + slen, end - pos - slen); in tls_verify_signature()
437 end = pos + slen; in tls_verify_signature()
/external/iproute2/ip/
Dtcp_metrics.c100 int family, i, atype, stype, dlen = 0, slen = 0; in process_msg() local
146 slen = RTA_PAYLOAD(a); in process_msg()
155 slen = RTA_PAYLOAD(a); in process_msg()
165 if (slen && f.saddr.family && f.saddr.bitlen >= 0 && in process_msg()
175 if (slen) in process_msg()
298 if (slen) { in process_msg()
300 format_host(family, slen, &saddr.data, abuf, in process_msg()
Dipl2tp.c579 int slen; in parse_args() local
581 slen = strlen(*argv); in parse_args()
582 if ((slen != 8) && (slen != 16)) in parse_args()
585 p->cookie_len = slen / 2; in parse_args()
589 int slen; in parse_args() local
591 slen = strlen(*argv); in parse_args()
592 if ((slen != 8) && (slen != 16)) in parse_args()
595 p->peer_cookie_len = slen / 2; in parse_args()
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
DCollationMonkeyTest.java54 … int slen = Math.abs(rand.nextInt(0x7fff) % source.length() - source.length()) % source.length(); in TestCollationKey() local
56 String subs = source.substring(Math.min(s, slen), Math.min(s + slen, source.length())); in TestCollationKey()
131 … int slen = Math.abs(rand.nextInt(0x7fff) % source.length() - source.length()) % source.length(); in TestCompare() local
133 String subs = source.substring(Math.min(s, slen), Math.min(s + slen, source.length())); in TestCompare()
DCollationFrozenMonkeyTest.java69 … int slen = Math.abs(rand.nextInt(0x7fff) % source.length() - source.length()) % source.length(); in TestCollationKey() local
71 String subs = source.substring(Math.min(s, slen), Math.min(s + slen, source.length())); in TestCollationKey()
159 … int slen = Math.abs(rand.nextInt(0x7fff) % source.length() - source.length()) % source.length(); in TestCompare() local
161 String subs = source.substring(Math.min(s, slen), Math.min(s + slen, source.length())); in TestCompare()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/
DCollationFrozenMonkeyTest.java73 … int slen = Math.abs(rand.nextInt(0x7fff) % source.length() - source.length()) % source.length(); in TestCollationKey() local
75 String subs = source.substring(Math.min(s, slen), Math.min(s + slen, source.length())); in TestCollationKey()
163 … int slen = Math.abs(rand.nextInt(0x7fff) % source.length() - source.length()) % source.length(); in TestCompare() local
165 String subs = source.substring(Math.min(s, slen), Math.min(s + slen, source.length())); in TestCompare()
DCollationMonkeyTest.java58 … int slen = Math.abs(rand.nextInt(0x7fff) % source.length() - source.length()) % source.length(); in TestCollationKey() local
60 String subs = source.substring(Math.min(s, slen), Math.min(s + slen, source.length())); in TestCollationKey()
135 … int slen = Math.abs(rand.nextInt(0x7fff) % source.length() - source.length()) % source.length(); in TestCompare() local
137 String subs = source.substring(Math.min(s, slen), Math.min(s + slen, source.length())); in TestCompare()

1234