Home
last modified time | relevance | path

Searched refs:SIZE_MAX (Results 1 – 25 of 321) sorted by relevance

12345678910>>...13

/src/contrib/libcbor/test/
H A Dmemory_utils_test.c14 assert_true(_cbor_safe_to_multiply(SIZE_MAX, 0)); in test_safe_multiply()
15 assert_true(_cbor_safe_to_multiply(SIZE_MAX, 1)); in test_safe_multiply()
16 assert_false(_cbor_safe_to_multiply(SIZE_MAX, 2)); in test_safe_multiply()
17 assert_false(_cbor_safe_to_multiply(SIZE_MAX, SIZE_MAX)); in test_safe_multiply()
22 assert_true(_cbor_safe_to_add(SIZE_MAX - 1, 1)); in test_safe_add()
23 assert_true(_cbor_safe_to_add(SIZE_MAX, 0)); in test_safe_add()
24 assert_false(_cbor_safe_to_add(SIZE_MAX, 1)); in test_safe_add()
25 assert_false(_cbor_safe_to_add(SIZE_MAX, 2)); in test_safe_add()
26 assert_false(_cbor_safe_to_add(SIZE_MAX, SIZE_MAX)); in test_safe_add()
27 assert_false(_cbor_safe_to_add(SIZE_MAX - 1, SIZE_MAX)); in test_safe_add()
[all …]
/src/contrib/xz/src/common/
H A Dsysdefs.h129 # undef SIZE_MAX
133 #ifndef SIZE_MAX
135 # define SIZE_MAX UINT32_MAX macro
137 # define SIZE_MAX UINT64_MAX macro
142 #if SIZE_MAX != UINT32_MAX && SIZE_MAX != UINT64_MAX
/src/lib/libc/stdlib/
H A Dmemalignment.c21 #if UINTPTR_MAX > SIZE_MAX in memalignment()
23 if (align > SIZE_MAX) in memalignment()
24 align = SIZE_MAX - SIZE_MAX/2; in memalignment()
/src/contrib/openpam/t/
H A Dt_openpam_straddch.c53 size = len = SIZE_MAX; in t_straddch_empty()
70 size = len = SIZE_MAX; in t_straddch_alloc_fail()
77 ret &= t_compare_sz(SIZE_MAX, size); in t_straddch_alloc_fail()
78 ret &= t_compare_sz(SIZE_MAX, len); in t_straddch_alloc_fail()
92 size = len = SIZE_MAX; in t_straddch_realloc_fail()
131 size = len = SIZE_MAX; in t_straddch_realloc_ok()
/src/crypto/krb5/src/util/support/
H A Dprintf.c58 if (len <= SIZE_MAX/2) in krb5int_vasprintf()
60 else if (len < SIZE_MAX) in krb5int_vasprintf()
61 len = SIZE_MAX; in krb5int_vasprintf()
64 } else if ((unsigned int) len2 >= SIZE_MAX) { in krb5int_vasprintf()
/src/lib/libc/tests/string/
H A Dstrnlen_test.c110 size_t val = strnlen_fn(s, SIZE_MAX); in ATF_TC_BODY()
113 align, SIZE_MAX, len); in ATF_TC_BODY()
119 val = strnlen_fn(s, SIZE_MAX); in ATF_TC_BODY()
122 align, SIZE_MAX, len); in ATF_TC_BODY()
/src/sys/contrib/libsodium/test/default/
H A Dsodium_utils2.c45 if (sodium_malloc(SIZE_MAX - 1U) != NULL) { in main()
51 if (sodium_allocarray(SIZE_MAX / 2U + 1U, SIZE_MAX / 2U) != NULL) { in main()
/src/sys/compat/linuxkpi/common/include/linux/
H A Doverflow.h273 return SIZE_MAX; in size_mul()
292 return SIZE_MAX; in size_add()
312 if (minuend == SIZE_MAX || subtrahend == SIZE_MAX || in size_sub()
314 return SIZE_MAX; in size_sub()
/src/crypto/krb5/src/include/
H A Dwin-mac.h54 #ifndef SIZE_MAX /* in case Microsoft defines max size of size_t */
56 #define SIZE_MAX MAX_SIZE macro
58 #define SIZE_MAX UINT_MAX macro
/src/contrib/flex/src/
H A Dflexint.h62 #ifndef SIZE_MAX
63 #define SIZE_MAX (~(size_t)0) macro
/src/contrib/jemalloc/include/msvc_compat/C99/
H A Dstdint.h202 #ifndef SIZE_MAX // [
204 # define SIZE_MAX _UI64_MAX macro
206 # define SIZE_MAX _UI32_MAX macro
/src/crypto/openssl/test/
H A Dsafe_math_test.c219 { SIZE_MAX, 1, 1, 0, 0, 0, 0, 0 },
220 { SIZE_MAX, 2, 1, 0, 1, 0, 0, 0 },
221 { SIZE_MAX, 8, 1, 0, 1, 0, 0, 0 },
222 { SIZE_MAX - 3, 8, 1, 0, 1, 0, 0, 0 },
223 { 1, SIZE_MAX, 1, 1, 0, 0, 0, 0 },
224 { 2, SIZE_MAX, 1, 1, 1, 0, 0, 0 },
H A Dconstant_time_test.c46 0, 1, 1024, 12345, 32000, SIZE_MAX / 2 - 1,
47 SIZE_MAX / 2, SIZE_MAX / 2 + 1, SIZE_MAX - 1,
48 SIZE_MAX
/src/sys/contrib/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/nosse/
H A Dpwhash_scryptsalsa208sha256_nosse.c305 #if SIZE_MAX > UINT32_MAX in escrypt_kdf_nosse()
327 if ((r > SIZE_MAX / 128 / p) || in escrypt_kdf_nosse()
328 #if SIZE_MAX / 256 <= UINT32_MAX in escrypt_kdf_nosse()
329 (r > SIZE_MAX / 256) || in escrypt_kdf_nosse()
331 (N > SIZE_MAX / 128 / r)) { in escrypt_kdf_nosse()
/src/sys/contrib/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/sse/
H A Dpwhash_scryptsalsa208sha256_sse.c320 # if SIZE_MAX > UINT32_MAX in escrypt_kdf_sse()
345 if ((r > SIZE_MAX / 128 / p) || in escrypt_kdf_sse()
346 # if SIZE_MAX / 256 <= UINT32_MAX in escrypt_kdf_sse()
347 (r > SIZE_MAX / 256) || in escrypt_kdf_sse()
349 (N > SIZE_MAX / 128 / r)) { in escrypt_kdf_sse()
/src/contrib/libdiff/compat/
H A Drecallocarray.c40 newnmemb > 0 && SIZE_MAX / newnmemb < size) { in recallocarray()
47 oldnmemb > 0 && SIZE_MAX / oldnmemb < size) { in recallocarray()
/src/contrib/mandoc/
H A Dcompat_recallocarray.c51 newnmemb > 0 && SIZE_MAX / newnmemb < size) { in recallocarray()
58 oldnmemb > 0 && SIZE_MAX / oldnmemb < size) { in recallocarray()
H A Dout.c169 tbl->cols[++maxcol].spacing = SIZE_MAX; in tblcalc()
178 if (dp->layout->spacing != SIZE_MAX && in tblcalc()
179 (col->spacing == SIZE_MAX || in tblcalc()
237 if (col->spacing == SIZE_MAX || icol == maxcol) in tblcalc()
276 colwidth[icol] = SIZE_MAX; in tblcalc()
286 min1 = min2 = SIZE_MAX; in tblcalc()
/src/crypto/openssh/openbsd-compat/
H A Drecallocarray.c47 newnmemb > 0 && SIZE_MAX / newnmemb < size) { in recallocarray()
54 oldnmemb > 0 && SIZE_MAX / oldnmemb < size) { in recallocarray()
/src/contrib/libfido2/openbsd-compat/
H A Drecallocarray.c48 newnmemb > 0 && SIZE_MAX / newnmemb < size) { in recallocarray()
55 oldnmemb > 0 && SIZE_MAX / oldnmemb < size) { in recallocarray()
/src/sys/dev/bhnd/nvram/
H A Dbhnd_nvram_data_bcmraw.c190 if (SIZE_MAX - nbytes < name_len) in bhnd_nvram_bcmraw_serialize()
212 if (SIZE_MAX - nbytes < value_len) in bhnd_nvram_bcmraw_serialize()
222 if (nbytes == SIZE_MAX) in bhnd_nvram_bcmraw_serialize()
257 if (io_size == SIZE_MAX) in bhnd_nvram_bcmraw_init()
H A Dbhnd_nvram_value_prf.c230 if (nbytes == SIZE_MAX) \ in bhnd_nvram_val_vprintf()
551 if (SIZE_MAX - nbytes < delim_len) in bhnd_nvram_val_vprintf()
754 if (SIZE_MAX - nbytes < arg_size) in bhnd_nvram_val_vprintf()
814 if (SIZE_MAX - nbytes < arg_size) in bhnd_nvram_val_vprintf()
866 if (nbytes < SIZE_MAX) in bhnd_nvram_val_vprintf()
/src/crypto/openssl/ssl/quic/
H A Dquic_rstream.c183 #if SIZE_MAX < UINT64_MAX in ossl_quic_rstream_available()
184 *avail = avail_ > SIZE_MAX ? SIZE_MAX : (size_t)avail_; in ossl_quic_rstream_available()
239 if (read_len != SIZE_MAX) in ossl_quic_rstream_release_record()
/src/sys/contrib/libsodium/src/libsodium/include/sodium/
H A Dcrypto_pwhash_argon2i.h62 … ((SIZE_MAX >= 4398046510080U) ? 4398046510080U : (SIZE_MAX >= 2147483648U) ? 2147483648U : 32768U)
H A Dcrypto_pwhash_argon2id.h62 … ((SIZE_MAX >= 4398046510080U) ? 4398046510080U : (SIZE_MAX >= 2147483648U) ? 2147483648U : 32768U)

12345678910>>...13