Home
last modified time | relevance | path

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

12345678910

/freebsd/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()
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()
28 assert_false(_cbor_safe_to_add(SIZE_MAX - 1, SIZE_MAX - 1)); in test_safe_add()
[all …]
/freebsd/contrib/xz/src/common/
H A Dsysdefs.h117 # undef SIZE_MAX
121 #ifndef SIZE_MAX
123 # define SIZE_MAX UINT32_MAX macro
125 # define SIZE_MAX UINT64_MAX macro
130 #if SIZE_MAX != UINT32_MAX && SIZE_MAX != UINT64_MAX
/freebsd/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()
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Doverflow.h194 return SIZE_MAX; in size_mul()
213 return SIZE_MAX; in size_add()
233 if (minuend == SIZE_MAX || subtrahend == SIZE_MAX || in size_sub()
235 return SIZE_MAX; in size_sub()
/freebsd/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()
/freebsd/contrib/diff/lib/
H A Dcmpbuf.c67 #ifndef SIZE_MAX
68 # define SIZE_MAX TYPE_MAXIMUM (size_t) macro
115 return SIZE_MAX; in block_read()
H A Dxmalloc.c36 #ifndef SIZE_MAX
37 # define SIZE_MAX ((size_t) -1) macro
196 if (SIZE_MAX / 2 / s < n) in x2nrealloc_inline()
H A Derror.c93 # ifndef SIZE_MAX
94 # define SIZE_MAX ((size_t) -1) macro
152 : len <= SIZE_MAX / sizeof *wbuf in error_tail()
/freebsd/contrib/flex/src/
H A Dflexint.h62 #ifndef SIZE_MAX
63 #define SIZE_MAX (~(size_t)0) macro
/freebsd/contrib/mandoc/
H A Dcompat_recallocarray.c51 newnmemb > 0 && SIZE_MAX / newnmemb < size) { in recallocarray()
58 oldnmemb > 0 && SIZE_MAX / oldnmemb < size) { in recallocarray()
/freebsd/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()
/freebsd/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()
/freebsd/contrib/libdiff/compat/
H A Drecallocarray.c40 newnmemb > 0 && SIZE_MAX / newnmemb < size) { in recallocarray()
47 oldnmemb > 0 && SIZE_MAX / oldnmemb < size) { in recallocarray()
/freebsd/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()
/freebsd/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()
/freebsd/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()
/freebsd/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)
/freebsd/crypto/openssl/include/internal/
H A Dnumbers.h74 # ifndef SIZE_MAX
75 # define SIZE_MAX __MAXUINT__(size_t) macro
/freebsd/crypto/openssl/test/
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
/freebsd/contrib/elftoolchain/libelf/
H A Delf_data.c114 if (sh_size / fsz > SIZE_MAX) { in elf_getdata()
124 if (count > 0 && msz > SIZE_MAX / count) { in elf_getdata()
130 assert(count <= SIZE_MAX); in elf_getdata()
131 assert(msz * count <= SIZE_MAX); in elf_getdata()
/freebsd/sys/contrib/libsodium/src/libsodium/randombytes/sysrandom/
H A Drandombytes_sysrandom.c63 # define SSIZE_MAX (SIZE_MAX / 2 - 1)
327 #if defined(ULONG_LONG_MAX) && defined(SIZE_MAX) in randombytes_sysrandom_buf()
328 # if SIZE_MAX > ULONG_LONG_MAX in randombytes_sysrandom_buf()
/freebsd/sys/x86/include/
H A D_stdint.h174 #define SIZE_MAX UINT64_MAX macro
180 #define SIZE_MAX UINT32_MAX macro
/freebsd/sys/powerpc/include/
H A D_stdint.h180 #define SIZE_MAX UINT64_MAX macro
191 #define SIZE_MAX UINT32_MAX macro

12345678910