Symbol: SIZE_MAX
bin/dd/args.c
223
errx(1, "files must be between 1 and %zu", SIZE_MAX);
bin/ps/fmt.c
62
if (arg_max >= LONG_MAX / 4 || arg_max >= (long)(SIZE_MAX / 4))
bin/setfacl/setfacl.c
112
if (fl_count > SIZE_MAX / sizeof(char *))
bin/sh/expand.c
894
if (len >= SIZE_MAX / 2 || len > PTRDIFF_MAX)
crypto/krb5/src/include/k5-der.h
130
if (len > (SIZE_MAX >> 8)) {
crypto/krb5/src/include/k5-platform.h
433
#ifndef SIZE_MAX
crypto/krb5/src/include/k5-platform.h
438
# define SSIZE_MAX ((ssize_t)(SIZE_MAX/2))
crypto/krb5/src/include/win-mac.h
54
#ifndef SIZE_MAX /* in case Microsoft defines max size of size_t */
crypto/krb5/src/lib/gssapi/krb5/k5sealv3.c
119
if (SIZE_MAX - 300 < message->length) {
crypto/krb5/src/lib/gssapi/krb5/k5sealv3.c
123
ec_max = SIZE_MAX - message->length - 300;
crypto/krb5/src/lib/gssapi/krb5/k5sealv3.c
138
if (encrypt_size > SIZE_MAX / 2) {
crypto/krb5/src/lib/krb5/asn.1/asn1_encode.c
1291
*count_out = SIZE_MAX;
crypto/krb5/src/lib/krb5/asn.1/asn1_encode.c
508
if (xlen < 0 || (uintmax_t)xlen > SIZE_MAX)
crypto/krb5/src/lib/krb5/asn.1/asn1_encode.c
513
if ((size_t)xlen != xlen || xlen > SIZE_MAX)
crypto/krb5/src/lib/krb5/asn.1/asn1_encode.c
586
if (count == SIZE_MAX)
crypto/krb5/src/lib/krb5/ccache/cc_file.c
136
if (sizeof(off_t) > sizeof(size_t) && sb.st_size > (off_t)SIZE_MAX)
crypto/krb5/src/lib/krb5/ccache/cc_file.c
137
*size_out = SIZE_MAX;
crypto/krb5/src/lib/rpc/svc_auth_gss.c
623
if (gd->cname.length == 0 || gd->cname.length >= SIZE_MAX)
crypto/krb5/src/util/support/base64.c
117
*len_out = SIZE_MAX;
crypto/krb5/src/util/support/base64.c
50
if (len > SIZE_MAX / 4)
crypto/krb5/src/util/support/k5buf.c
83
if (new_space > SIZE_MAX / 2)
crypto/krb5/src/util/support/printf.c
58
if (len <= SIZE_MAX/2)
crypto/krb5/src/util/support/printf.c
60
else if (len < SIZE_MAX)
crypto/krb5/src/util/support/printf.c
61
len = SIZE_MAX;
crypto/krb5/src/util/support/printf.c
64
} else if ((unsigned int) len2 >= SIZE_MAX) {
crypto/krb5/src/util/support/t_base64.c
101
if (data != NULL || len != SIZE_MAX) {
crypto/krb5/src/util/support/t_k5buf.c
128
k5_buf_add_len(&buf, NULL, SIZE_MAX);
crypto/krb5/src/util/support/t_k5buf.c
150
k5_buf_add_len(&buf, NULL, SIZE_MAX);
crypto/openssh/auth-options.c
57
if (nsrc >= SIZE_MAX / sizeof(*src) ||
crypto/openssh/defines.h
336
#ifndef SIZE_MAX
crypto/openssh/misc.c
992
if ((srclen = strlen(src)) >= SIZE_MAX)
crypto/openssh/openbsd-compat/glob.c
813
SIZE_MAX / sizeof(*pathv) <= newn ||
crypto/openssh/openbsd-compat/glob.c
814
SIZE_MAX / sizeof(*statv) <= newn) {
crypto/openssh/openbsd-compat/reallocarray.c
40
nmemb > 0 && SIZE_MAX / nmemb < size) {
crypto/openssh/openbsd-compat/recallocarray.c
47
newnmemb > 0 && SIZE_MAX / newnmemb < size) {
crypto/openssh/openbsd-compat/recallocarray.c
54
oldnmemb > 0 && SIZE_MAX / oldnmemb < size) {
crypto/openssh/regress/unittests/test_helper/fuzz.c
227
assert(ret->slen < SIZE_MAX / 8);
crypto/openssh/ssh-ed25519.c
242
if (dlen >= SIZE_MAX - len) {
crypto/openssh/ssh-keygen.c
2289
if ((tlen = strlen(cp)) >= SIZE_MAX - 5)
crypto/openssh/ssh-xmss.c
318
if (dlen >= SIZE_MAX - len) {
crypto/openssh/sshbuf-getput-basic.c
104
if (offset >= SIZE_MAX - len)
crypto/openssh/sshbuf-misc.c
100
if (d == NULL || b64 == NULL || sshbuf_len(d) >= SIZE_MAX / 2)
crypto/openssh/sshbuf-misc.c
221
if (s == NULL || l > SIZE_MAX)
crypto/openssh/sshbuf-misc.c
83
if (SIZE_MAX / 2 <= len || (ret = malloc(len * 2 + 1)) == NULL)
crypto/openssh/xmalloc.c
53
if (SIZE_MAX / nmemb < size)
crypto/openssl/apps/lib/apps.c
2041
|| sz > SIZE_MAX - len
crypto/openssl/apps/speed.c
2186
if ((size_t)multi >= SIZE_MAX / sizeof(int)) {
crypto/openssl/crypto/bio/bio_lib.c
721
#if LONG_MAX > SIZE_MAX
crypto/openssl/crypto/bio/bio_lib.c
722
if (ret > SIZE_MAX)
crypto/openssl/crypto/bio/bio_lib.c
723
ret = SIZE_MAX;
crypto/openssl/crypto/bio/bio_lib.c
734
#if LONG_MAX > SIZE_MAX
crypto/openssl/crypto/bio/bio_lib.c
735
if (ret > SIZE_MAX)
crypto/openssl/crypto/bio/bio_lib.c
736
ret = SIZE_MAX;
crypto/openssl/crypto/bio/bio_print.c
389
strln = OPENSSL_strnlen(value, max < 0 ? SIZE_MAX : (size_t)max);
crypto/openssl/crypto/bio/bss_dgram_pair.c
1148
static const size_t max_rbuf_size = SIZE_MAX / 2; /* unlimited in practice */
crypto/openssl/crypto/comp/c_brotli.c
511
#if INT_MAX > SIZE_MAX
crypto/openssl/crypto/comp/c_brotli.c
512
if ((unsigned int)outl > SIZE_MAX) {
crypto/openssl/crypto/comp/c_brotli.c
582
#if INT_MAX > SIZE_MAX
crypto/openssl/crypto/comp/c_brotli.c
583
if ((unsigned int)inl > SIZE_MAX) {
crypto/openssl/crypto/dsa/dsa_sign.c
94
if (!WPACKET_init_static_len(&pkt, *ppout, SIZE_MAX, 0))
crypto/openssl/crypto/ec/ec_asn1.c
1243
if (!WPACKET_init_static_len(&pkt, *ppout, SIZE_MAX, 0))
crypto/openssl/crypto/evp/bio_ok.c
581
if (tl > SIZE_MAX - OK_BLOCK_BLOCK - (size_t)md_size)
crypto/openssl/crypto/evp/evp_lib.c
1047
|| sz == SIZE_MAX
crypto/openssl/crypto/evp/pbe_scrypt.c
30
#define SCRYPT_MAX_MEM (SIZE_MAX / 2)
crypto/openssl/crypto/hashtable/hashtable.c
540
size_t empty_idx = SIZE_MAX;
crypto/openssl/crypto/hashtable/hashtable.c
583
if (empty_idx == SIZE_MAX)
crypto/openssl/crypto/o_str.c
299
if (buflen > (has_sep ? SIZE_MAX / 3 : (SIZE_MAX - 1) / 2)) {
crypto/openssl/crypto/o_str.c
347
if ((sep != CH_ZERO && (size_t)buflen > SIZE_MAX / 3)
crypto/openssl/crypto/o_str.c
348
|| (sep == CH_ZERO && (size_t)buflen > (SIZE_MAX - 1) / 2)) {
crypto/openssl/crypto/packet.c
193
pkt->maxsize = SIZE_MAX;
crypto/openssl/crypto/packet.c
61
if (reflen > SIZE_MAX / 2) {
crypto/openssl/crypto/packet.c
62
newlen = SIZE_MAX;
crypto/openssl/crypto/packet.c
98
return SIZE_MAX;
crypto/openssl/crypto/stack/stack.c
24
static const int max_nodes = SIZE_MAX / sizeof(void *) < INT_MAX
crypto/openssl/crypto/stack/stack.c
25
? (int)(SIZE_MAX / sizeof(void *))
crypto/openssl/demos/http3/ossl-nghttp3-demo-server.c
469
size_t result_count = SIZE_MAX;
crypto/openssl/include/internal/numbers.h
98
#ifndef SIZE_MAX
crypto/openssl/include/internal/packet.h
74
if (len > (size_t)(SIZE_MAX / 2))
crypto/openssl/include/internal/packet_quic.h
107
if (!PACKET_get_quic_vlint(&tmp, &length) || length > SIZE_MAX || !PACKET_get_bytes(&tmp, &data, (size_t)length)) {
crypto/openssl/include/openssl/e_os2.h
210
#define OSSL_SSIZE_MAX ((ssize_t)(SIZE_MAX >> 1))
crypto/openssl/providers/implementations/digests/sha3_prov.c
118
if (ctx->md_size == SIZE_MAX) {
crypto/openssl/providers/implementations/digests/sha3_prov.c
503
ctx->md_size = SIZE_MAX; \
crypto/openssl/providers/implementations/exchange/kdf_exch.c
115
if (kdfsize != SIZE_MAX) {
crypto/openssl/providers/implementations/kdfs/argon2.c
1498
return OSSL_PARAM_set_size_t(p, SIZE_MAX);
crypto/openssl/providers/implementations/kdfs/hkdf.c
182
return SIZE_MAX;
crypto/openssl/providers/implementations/kdfs/kbkdf.c
497
if (p != NULL && !OSSL_PARAM_set_size_t(p, SIZE_MAX))
crypto/openssl/providers/implementations/kdfs/pbkdf1.c
243
return OSSL_PARAM_set_size_t(p, SIZE_MAX);
crypto/openssl/providers/implementations/kdfs/pbkdf2.c
333
if (!OSSL_PARAM_set_size_t(p, SIZE_MAX))
crypto/openssl/providers/implementations/kdfs/pkcs12kdf.c
301
return OSSL_PARAM_set_size_t(p, SIZE_MAX);
crypto/openssl/providers/implementations/kdfs/pvkkdf.c
221
return OSSL_PARAM_set_size_t(p, SIZE_MAX);
crypto/openssl/providers/implementations/kdfs/scrypt.c
295
return OSSL_PARAM_set_size_t(p, SIZE_MAX);
crypto/openssl/providers/implementations/kdfs/scrypt.c
424
#ifndef SIZE_MAX
crypto/openssl/providers/implementations/kdfs/scrypt.c
512
if (maxmem > SIZE_MAX)
crypto/openssl/providers/implementations/kdfs/scrypt.c
513
maxmem = SIZE_MAX;
crypto/openssl/providers/implementations/kdfs/sshkdf.c
303
if (!OSSL_PARAM_set_size_t(p, SIZE_MAX))
crypto/openssl/providers/implementations/kdfs/sskdf.c
384
return SIZE_MAX;
crypto/openssl/providers/implementations/kdfs/tls1_prf.c
409
if (!OSSL_PARAM_set_size_t(p, SIZE_MAX))
crypto/openssl/ssl/priority_queue.c
62
static const size_t max_nodes = SIZE_MAX / (sizeof(struct pq_heap_st) > sizeof(struct pq_elem_st) ? sizeof(struct pq_heap_st) : sizeof(struct pq_elem_st));
crypto/openssl/ssl/quic/qlog_event_helpers.c
217
*need_skip = SIZE_MAX;
crypto/openssl/ssl/quic/qlog_event_helpers.c
319
: SIZE_MAX;
crypto/openssl/ssl/quic/quic_channel.c
3107
if (l >= SIZE_MAX)
crypto/openssl/ssl/quic/quic_demux.c
159
if (alloc_len >= SIZE_MAX - sizeof(QUIC_URXE))
crypto/openssl/ssl/quic/quic_demux.c
184
if (new_alloc_len >= SIZE_MAX - sizeof(QUIC_URXE))
crypto/openssl/ssl/quic/quic_impl.c
2494
size_t spare_ = (spare > SIZE_MAX) ? SIZE_MAX : (size_t)spare;
crypto/openssl/ssl/quic/quic_port.c
1534
if (!ossl_quic_wire_decode_pkt_hdr(&pkt, SIZE_MAX, 1, 0, &hdr, NULL,
crypto/openssl/ssl/quic/quic_rcidm.c
244
#define MAX_NUMBERED_RCIDS (SIZE_MAX / 2)
crypto/openssl/ssl/quic/quic_rcidm.c
256
== (rcid->pq_idx != SIZE_MAX));
crypto/openssl/ssl/quic/quic_rcidm.c
371
rcid->pq_idx = SIZE_MAX;
crypto/openssl/ssl/quic/quic_rcidm.c
397
rcid->pq_idx = SIZE_MAX;
crypto/openssl/ssl/quic/quic_record_rx.c
561
if (alloc_len >= SIZE_MAX - sizeof(RXE))
crypto/openssl/ssl/quic/quic_record_rx.c
610
if (n >= SIZE_MAX - sizeof(RXE))
crypto/openssl/ssl/quic/quic_record_rx.c
803
return SIZE_MAX;
crypto/openssl/ssl/quic/quic_record_tx.c
221
if (alloc_len >= SIZE_MAX - sizeof(TXE))
crypto/openssl/ssl/quic/quic_record_tx.c
270
if (n >= SIZE_MAX - sizeof(TXE))
crypto/openssl/ssl/quic/quic_record_tx.c
554
src_len = iovec_cur_get_buffer(cur, &src, SIZE_MAX);
crypto/openssl/ssl/quic/quic_record_tx.c
701
src_len = iovec_cur_get_buffer(&cur, &src, SIZE_MAX);
crypto/openssl/ssl/quic/quic_rstream.c
183
#if SIZE_MAX < UINT64_MAX
crypto/openssl/ssl/quic/quic_rstream.c
184
*avail = avail_ > SIZE_MAX ? SIZE_MAX : (size_t)avail_;
crypto/openssl/ssl/quic/quic_rstream.c
239
if (read_len != SIZE_MAX)
crypto/openssl/ssl/quic/quic_rx_depack.c
73
|| total_ranges > SIZE_MAX / sizeof(OSSL_QUIC_ACK_RANGE))
crypto/openssl/ssl/quic/quic_trace.c
91
|| total_ranges > SIZE_MAX / sizeof(ack_ranges[0])
crypto/openssl/ssl/quic/quic_txp.c
2007
size_t maxn_ = maxn > SIZE_MAX ? SIZE_MAX : (size_t)maxn;
crypto/openssl/ssl/quic/quic_txp.c
2078
if (chdr->len > SIZE_MAX)
crypto/openssl/ssl/quic/quic_txp.c
2103
if (shdr->len > SIZE_MAX)
crypto/openssl/ssl/quic/quic_txp.c
466
txp->unvalidated_credit = SIZE_MAX;
crypto/openssl/ssl/quic/quic_txp.c
487
if (txp->unvalidated_credit != SIZE_MAX) {
crypto/openssl/ssl/quic/quic_txp.c
488
if ((SIZE_MAX - txp->unvalidated_credit) > (credit * 3))
crypto/openssl/ssl/quic/quic_txp.c
491
txp->unvalidated_credit = SIZE_MAX - 1;
crypto/openssl/ssl/quic/quic_txp.c
511
if (txp->unvalidated_credit != SIZE_MAX) {
crypto/openssl/ssl/quic/quic_wire.c
156
|| f->len > SIZE_MAX /* sizeof(uint64_t) > sizeof(size_t)? */
crypto/openssl/ssl/quic/quic_wire.c
238
|| f->len > SIZE_MAX /* sizeof(uint64_t) > sizeof(size_t)? */)
crypto/openssl/ssl/quic/quic_wire.c
534
if (ack_range_count > SIZE_MAX /* sizeof(uint64_t) > sizeof(size_t)? */)
crypto/openssl/ssl/quic/quic_wire.c
629
|| f->len > SIZE_MAX /* sizeof(uint64_t) > sizeof(size_t)? */)
crypto/openssl/ssl/quic/quic_wire.c
661
if (token_len_ > SIZE_MAX)
crypto/openssl/ssl/quic/quic_wire.c
719
if (f->len > SIZE_MAX /* sizeof(uint64_t) > sizeof(size_t)? */
crypto/openssl/ssl/quic/quic_wire.c
875
|| reason_len > SIZE_MAX)
crypto/openssl/ssl/quic/quic_wire.c
927
if (len_ > SIZE_MAX
crypto/openssl/ssl/quic/quic_wire_pkt.c
377
|| token_len > SIZE_MAX
crypto/openssl/test/bioprinttest.c
123
{ SIZE_MAX, "%zu", (sizeof(size_t) == 4 ? "4294967295" : sizeof(size_t) == 8 ? "18446744073709551615"
crypto/openssl/test/bioprinttest.c
129
{ SIZE_MAX / 2 + 1, "%zi", (sizeof(size_t) == 4 ? "-2147483648" : sizeof(size_t) == 8 ? "-9223372036854775808"
crypto/openssl/test/cc_dummy.c
98
return SIZE_MAX;
crypto/openssl/test/constant_time_test.c
46
0, 1, 1024, 12345, 32000, SIZE_MAX / 2 - 1,
crypto/openssl/test/constant_time_test.c
47
SIZE_MAX / 2, SIZE_MAX / 2 + 1, SIZE_MAX - 1,
crypto/openssl/test/constant_time_test.c
48
SIZE_MAX
crypto/openssl/test/evp_kdf_test.c
1905
&& TEST_size_t_eq(EVP_KDF_CTX_get_kdf_size(kctx), SIZE_MAX)
crypto/openssl/test/evp_kdf_test.c
1996
|| TEST_size_t_eq(EVP_KDF_CTX_get_kdf_size(kctx), SIZE_MAX))
crypto/openssl/test/evp_kdf_test.c
268
|| !TEST_size_t_eq(sz, expand_only ? SHA256_DIGEST_LENGTH : SIZE_MAX))
crypto/openssl/test/evp_kdf_test.c
687
len = SIZE_MAX;
crypto/openssl/test/evp_test.c
4121
if (got_len == SIZE_MAX || got_len == 0)
crypto/openssl/test/json_test.c
156
#define END_SCRIPT_EXPECTING_S(s) END_SCRIPT_EXPECTING(s, SIZE_MAX)
crypto/openssl/test/json_test.c
662
info->expected_output_len == SIZE_MAX
crypto/openssl/test/priority_queue_test.c
100
if (values[i] != SIZE_MAX) {
crypto/openssl/test/priority_queue_test.c
104
values[i] = SIZE_MAX;
crypto/openssl/test/quic_cc_test.c
394
if (sz > SIZE_MAX)
crypto/openssl/test/quic_cc_test.c
395
sz = SIZE_MAX;
crypto/openssl/test/quic_cc_test.c
492
size_t mdpl = 1472, diag_mdpl = SIZE_MAX;
crypto/openssl/test/quic_multistream_test.c
5608
result_count = SIZE_MAX;
crypto/openssl/test/quic_record_test.c
10080
if (t->pn_offset == SIZE_MAX) {
crypto/openssl/test/quic_record_test.c
10088
if (t->sample_offset != SIZE_MAX) {
crypto/openssl/test/quic_record_test.c
10109
if (t->sample_offset != SIZE_MAX) { /* if packet type has protection */
crypto/openssl/test/quic_record_test.c
9480
SIZE_MAX, SIZE_MAX
crypto/openssl/test/quic_record_test.c
9707
SIZE_MAX, SIZE_MAX
crypto/openssl/test/quic_record_test.c
9743
SIZE_MAX, SIZE_MAX
crypto/openssl/test/quic_record_test.c
9759
3, SIZE_MAX,
crypto/openssl/test/quic_record_test.c
9781
0, SIZE_MAX,
crypto/openssl/test/quic_record_test.c
9803
0, SIZE_MAX,
crypto/openssl/test/quic_wire_test.c
123
SIZE_MAX)
crypto/openssl/test/quic_wire_test.c
126
SIZE_MAX))
crypto/openssl/test/quic_wire_test.c
285
if (!TEST_uint64_t_le(f.len, SIZE_MAX))
crypto/openssl/test/quic_wire_test.c
381
if (!TEST_uint64_t_le(f.len, SIZE_MAX))
crypto/openssl/test/quic_wire_test.c
436
if (!TEST_uint64_t_le(f.len, SIZE_MAX))
crypto/openssl/test/radix/quic_tests.c
144
result_count = SIZE_MAX;
crypto/openssl/test/radix/quic_tests.c
262
result_count = SIZE_MAX;
crypto/openssl/test/radix/terp.c
372
if (op_num != SIZE_MAX)
crypto/openssl/test/radix/terp.c
679
if (!TEST_true(SRDR_print_one(&srdr_copy, debug_bio, SIZE_MAX, NULL)))
crypto/openssl/test/safe_math_test.c
219
{ SIZE_MAX, 1, 1, 0, 0, 0, 0, 0 },
crypto/openssl/test/safe_math_test.c
220
{ SIZE_MAX, 2, 1, 0, 1, 0, 0, 0 },
crypto/openssl/test/safe_math_test.c
221
{ SIZE_MAX, 8, 1, 0, 1, 0, 0, 0 },
crypto/openssl/test/safe_math_test.c
222
{ SIZE_MAX - 3, 8, 1, 0, 1, 0, 0, 0 },
crypto/openssl/test/safe_math_test.c
223
{ 1, SIZE_MAX, 1, 1, 0, 0, 0, 0 },
crypto/openssl/test/safe_math_test.c
224
{ 2, SIZE_MAX, 1, 1, 1, 0, 0, 0 },
crypto/openssl/test/sanitytest.c
222
if (SIZE_MAX < INT_MAX) {
crypto/openssl/test/sanitytest.c
228
if (SIZE_MAX - INT_MAX <= INT_MAX) {
crypto/openssl/test/sslapitest.c
11506
return SIZE_MAX;
crypto/openssl/test/wpackettest.c
151
|| !TEST_true(WPACKET_set_max_size(&pkt, SIZE_MAX))
crypto/openssl/test/wpackettest.c
153
|| !TEST_true(WPACKET_set_max_size(&pkt, SIZE_MAX - 1))
crypto/openssl/test/wpackettest.c
155
|| !TEST_true(WPACKET_set_max_size(&pkt, SIZE_MAX))
krb5/lib/gssapi/errmap.h
85
upper_bound = SIZE_MAX / sizeof(*arr->elts);
lib/libc/net/linkaddr.c
229
if ((SIZE_MAX - (n)) >= needed) \
lib/libc/stdio/fread.c
82
(count > SIZE_MAX / size)) {
lib/libc/stdio/fwrite.c
69
(count > SIZE_MAX / size)) {
lib/libc/stdlib/memalignment.c
21
#if UINTPTR_MAX > SIZE_MAX
lib/libc/stdlib/memalignment.c
23
if (align > SIZE_MAX)
lib/libc/stdlib/memalignment.c
24
align = SIZE_MAX - SIZE_MAX/2;
lib/libc/tests/stdio/printbasic_test.c
49
#define S_SIZEMAX (SIZE_MAX == UINT64_MAX ? S_UINT64MAX : S_UINT32MAX)
lib/libc/tests/string/strnlen_test.c
110
size_t val = strnlen_fn(s, SIZE_MAX);
lib/libc/tests/string/strnlen_test.c
113
align, SIZE_MAX, len);
lib/libc/tests/string/strnlen_test.c
119
val = strnlen_fn(s, SIZE_MAX);
lib/libc/tests/string/strnlen_test.c
122
align, SIZE_MAX, len);
lib/libnv/tests/nvlist_send_recv_test.c
579
header->nvlh_size = SIZE_MAX - sizeof(struct nvlist_header) + 2;
libexec/phttpget/phttpget.c
85
if (ptlen > ((SIZE_MAX - 1) / 4) * 3 - 2)
sys/compat/freebsd32/freebsd32_misc.c
352
if (uap->bufsize < 0 || uap->bufsize > SIZE_MAX)
sys/compat/linuxkpi/common/include/linux/overflow.h
273
return SIZE_MAX;
sys/compat/linuxkpi/common/include/linux/overflow.h
292
return SIZE_MAX;
sys/compat/linuxkpi/common/include/linux/overflow.h
312
if (minuend == SIZE_MAX || subtrahend == SIZE_MAX ||
sys/compat/linuxkpi/common/include/linux/overflow.h
314
return SIZE_MAX;
sys/compat/linuxkpi/common/include/linux/slab.h
284
if (unlikely(size == 0 || size == SIZE_MAX))
sys/dev/bhnd/nvram/bhnd_nvram_data_bcm.c
482
if (SIZE_MAX - nbytes < name_len)
sys/dev/bhnd/nvram/bhnd_nvram_data_bcm.c
504
if (SIZE_MAX - nbytes < value_len)
sys/dev/bhnd/nvram/bhnd_nvram_data_bcm.c
514
if (nbytes == SIZE_MAX)
sys/dev/bhnd/nvram/bhnd_nvram_data_bcm.c
589
if (io_size == SIZE_MAX)
sys/dev/bhnd/nvram/bhnd_nvram_data_bcmraw.c
190
if (SIZE_MAX - nbytes < name_len)
sys/dev/bhnd/nvram/bhnd_nvram_data_bcmraw.c
212
if (SIZE_MAX - nbytes < value_len)
sys/dev/bhnd/nvram/bhnd_nvram_data_bcmraw.c
222
if (nbytes == SIZE_MAX)
sys/dev/bhnd/nvram/bhnd_nvram_data_bcmraw.c
257
if (io_size == SIZE_MAX)
sys/dev/bhnd/nvram/bhnd_nvram_data_btxt.c
391
if (SIZE_MAX - nbytes < name_len)
sys/dev/bhnd/nvram/bhnd_nvram_data_btxt.c
419
if (SIZE_MAX - nbytes < value_len)
sys/dev/bhnd/nvram/bhnd_nvram_data_btxt.c
785
BHND_NV_ASSERT((uintptr_t)offset < SIZE_MAX, ("cookiep > SIZE_MAX)"));
sys/dev/bhnd/nvram/bhnd_nvram_data_sprom.c
1238
if (SIZE_MAX - binding->skip_out < ipos) {
sys/dev/bhnd/nvram/bhnd_nvram_data_sprom.c
589
if (SIZE_MAX - binding->skip_out < ipos) {
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
299
if (SIZE_MAX - nbytes < rec_size)
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
338
if (nbytes == SIZE_MAX)
sys/dev/bhnd/nvram/bhnd_nvram_data_tlv.c
878
BHND_NV_ASSERT((uintptr_t)offset < SIZE_MAX, ("cookiep > SIZE_MAX)"));
sys/dev/bhnd/nvram/bhnd_nvram_iobuf.c
202
if (SIZE_MAX - size < offset)
sys/dev/bhnd/nvram/bhnd_nvram_iobuf.c
96
if (SIZE_MAX - sizeof(*iobuf) < capacity) {
sys/dev/bhnd/nvram/bhnd_nvram_iores.c
97
if (size > SIZE_MAX || offset > SIZE_MAX) {
sys/dev/bhnd/nvram/bhnd_nvram_plist.c
422
if (plist->num_entries == SIZE_MAX)
sys/dev/bhnd/nvram/bhnd_nvram_store.c
293
if (path->num_vars == SIZE_MAX) {
sys/dev/bhnd/nvram/bhnd_nvram_store_subr.c
854
if (sc->num_paths == SIZE_MAX)
sys/dev/bhnd/nvram/bhnd_nvram_store_subr.c
906
if (sc->num_aliases == SIZE_MAX)
sys/dev/bhnd/nvram/bhnd_nvram_value.c
1599
if (SIZE_MAX - nbytes < elem_nbytes)
sys/dev/bhnd/nvram/bhnd_nvram_value_prf.c
230
if (nbytes == SIZE_MAX) \
sys/dev/bhnd/nvram/bhnd_nvram_value_prf.c
551
if (SIZE_MAX - nbytes < delim_len)
sys/dev/bhnd/nvram/bhnd_nvram_value_prf.c
754
if (SIZE_MAX - nbytes < arg_size)
sys/dev/bhnd/nvram/bhnd_nvram_value_prf.c
814
if (SIZE_MAX - nbytes < arg_size)
sys/dev/bhnd/nvram/bhnd_nvram_value_prf.c
866
if (nbytes < SIZE_MAX)
sys/dev/bhnd/nvram/bhnd_nvram_value_subr.c
268
if (SIZE_MAX / nelem < width) {
sys/dev/bhnd/nvram/bhnd_nvram_value_subr.c
305
if (SIZE_MAX - total_size < elem_size)
sys/dev/mlx5/mlx5_ib/mlx5_ib_cq.c
1130
if (ucmd.cqe_size && SIZE_MAX / ucmd.cqe_size <= entries - 1)
sys/fs/tmpfs/tmpfs_vfsops.c
424
(SIZE_MAX < OFF_MAX && size_max / PAGE_SIZE >= SIZE_MAX))
sys/fs/tmpfs/tmpfs_vfsops.c
425
pages = SIZE_MAX;
sys/kern/vfs_syscalls.c
405
if (uap->bufsize < 0 || uap->bufsize > SIZE_MAX)
sys/kern/vfs_syscalls.c
655
if (count > SIZE_MAX / sizeof(struct statfs))
sys/netpfil/ipfilter/netinet/ip_htable.c
369
if (iph->iph_size > ( SIZE_MAX / sizeof(*iph->iph_table))) {
sys/netpfil/pf/if_pflog.c
127
if (n > SIZE_MAX / sizeof(struct ifnet *))
sys/sys/stdint.h
72
#define RSIZE_MAX (SIZE_MAX >> 1)
tests/sys/audit/file-attribute-modify.c
954
mprotect((void *)SIZE_MAX, -1, PROT_NONE) == -1);
tests/sys/audit/file-close.c
86
ATF_REQUIRE_EQ(-1, munmap((void *)SIZE_MAX, -1));
tests/sys/audit/process-control.c
1356
ATF_REQUIRE_EQ(-1, profil((char *)(SIZE_MAX), -1, -1, -1));
tests/sys/kern/getdirentries_test.c
108
ATF_REQUIRE_EQ(-1, getdirentries(dd, dbuf, SIZE_MAX, &base));
tools/build/bootstrap-m4/inittokenizer.c
88
#ifndef SIZE_MAX
usr.bin/comm/comm.c
188
if (SIZE_MAX / sizeof(*buf) < n + 1)
usr.bin/diff/diffreg.c
565
sz = MIN(filesize, SIZE_MAX) / 25;
usr.bin/diff/diffreg.c
573
if (j == SIZE_MAX)
usr.bin/gzip/unxz.c
194
if (amount == SIZE_MAX)
usr.bin/lex/initscan.c
87
#ifndef SIZE_MAX
usr.bin/m4/eval.c
104
size_t mark = SIZE_MAX;
usr.bin/m4/eval.c
115
if (mark != SIZE_MAX)
usr.bin/m4/gnum4.c
215
else if (bufsize <= SIZE_MAX/2) {
usr.bin/m4/trace.c
184
return SIZE_MAX;
usr.bin/mkimg/image.c
163
dsz = SIZE_MAX - ch->ch_size;
usr.bin/mkimg/image.c
165
ch->ch_size = SIZE_MAX;
usr.bin/mkimg/image.c
229
if ((uintmax_t)(to - from) > (uintmax_t)(SIZE_MAX / secsz))
usr.bin/patch/inp.c
175
if ((uint64_t)filestat.st_size > SIZE_MAX) {
usr.bin/patch/pch.c
1574
min_components = min_baselen = min_len = SIZE_MAX;
usr.bin/sdiff/sdiff.c
375
if (width > (SIZE_MAX - 3) / 2)
usr.bin/sdiff/sdiff.c
530
if (*col > SIZE_MAX - tabsize)
usr.bin/sdiff/sdiff.c
787
if (file1start == SIZE_MAX)
usr.bin/sdiff/sdiff.c
799
if (file2start == SIZE_MAX)
usr.bin/uniq/uniq.c
258
if (SIZE_MAX / sizeof(*buf) < n + 1)
usr.sbin/bhyve/iov.c
104
assert(total <= SIZE_MAX - iov[i].iov_len);
usr.sbin/bhyve/iov.c
90
assert(total <= SIZE_MAX - iov[i].iov_len);
usr.sbin/config/main.cc
761
if (size > SIZE_MAX - off || off + size > (size_t)st.st_size)
usr.sbin/lpr/lpd/recvjob.c
418
minfree = SIZE_MAX;