/openbmc/linux/include/linux/ |
H A D | fortify-string.h | 22 size_t __ret = SIZE_MAX; \ 24 if (__p_size != SIZE_MAX && \ 186 if (__builtin_constant_p(maxlen) && p_len != SIZE_MAX) { in strnlen() 227 if (p_size == SIZE_MAX) in __fortify_strlen() 262 if (p_size == SIZE_MAX && q_size == SIZE_MAX) in strlcpy() 314 if (p_size == SIZE_MAX && q_size == SIZE_MAX) in strscpy() 325 if (__compiletime_lessthan(p_size, SIZE_MAX)) { in strscpy() 328 if (len < SIZE_MAX && __compiletime_lessthan(len, size)) { in strscpy() 396 if (p_size == SIZE_MAX && q_size == SIZE_MAX) in strlcat() 478 if (p_size == SIZE_MAX && q_size == SIZE_MAX) in strncat() [all …]
|
H A D | overflow.h | 194 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()
|
H A D | limits.h | 9 #define SIZE_MAX (~(size_t)0) macro 10 #define SSIZE_MAX ((ssize_t)(SIZE_MAX >> 1))
|
H A D | generic-radix-tree.h | 189 iter->offset = SIZE_MAX; in __genradix_iter_advance() 190 iter->pos = SIZE_MAX; in __genradix_iter_advance()
|
/openbmc/linux/lib/ |
H A D | overflow_kunit.c | 566 volatile size_t b = (SIZE_MAX / TEST_SIZE) + 1; \ 677 check_one_size_helper(SIZE_MAX, size_mul, SIZE_MAX, 1); in overflow_size_helpers_test() 678 check_one_size_helper(SIZE_MAX, size_mul, SIZE_MAX, 3); in overflow_size_helpers_test() 679 check_one_size_helper(SIZE_MAX, size_mul, SIZE_MAX, -3); in overflow_size_helpers_test() 687 check_one_size_helper(SIZE_MAX, size_add, SIZE_MAX, 1); in overflow_size_helpers_test() 688 check_one_size_helper(SIZE_MAX, size_add, SIZE_MAX, 3); in overflow_size_helpers_test() 689 check_one_size_helper(SIZE_MAX, size_add, SIZE_MAX, -3); in overflow_size_helpers_test() 696 check_one_size_helper(SIZE_MAX, size_sub, 9, -3); in overflow_size_helpers_test() 697 check_one_size_helper(SIZE_MAX, size_sub, 0, 9); in overflow_size_helpers_test() 698 check_one_size_helper(SIZE_MAX, size_sub, 2, 3); in overflow_size_helpers_test() [all …]
|
H A D | generic-radix-tree.c | 172 if (iter->offset == SIZE_MAX) in __genradix_iter_peek() 196 iter->offset = SIZE_MAX; in __genradix_iter_peek() 197 iter->pos = SIZE_MAX; in __genradix_iter_peek()
|
H A D | fortify_kunit.c | 34 KUNIT_EXPECT_EQ(test, __compiletime_strlen(array_unknown), SIZE_MAX); in known_sizes_test() 36 KUNIT_EXPECT_EQ(test, __compiletime_strlen(test->name), SIZE_MAX); in known_sizes_test() 63 KUNIT_EXPECT_EQ(test, want_minus_one(pick), SIZE_MAX); in control_flow_split_test() 97 KUNIT_EXPECT_BOS(test, p, SIZE_MAX, #alloc); \
|
/openbmc/linux/tools/include/linux/ |
H A D | overflow.h | 87 return SIZE_MAX; in array_size() 109 return SIZE_MAX; in array3_size() 111 return SIZE_MAX; in array3_size() 121 return SIZE_MAX; in __ab_c_size() 123 return SIZE_MAX; in __ab_c_size()
|
/openbmc/u-boot/include/ |
H A D | charset.h | 62 #define utf8_utf16_strlen(a) utf8_utf16_strnlen((a), SIZE_MAX) 81 #define utf8_utf16_strcpy(d, s) utf8_utf16_strncpy((d), (s), SIZE_MAX) 132 #define utf16_utf8_strlen(a) utf16_utf8_strnlen((a), SIZE_MAX) 151 #define utf16_utf8_strcpy(d, s) utf16_utf8_strncpy((d), (s), SIZE_MAX)
|
/openbmc/linux/drivers/usb/gadget/ |
H A D | u_f.h | 26 if (groupname##__next != SIZE_MAX) { \ 33 groupname##__next = SIZE_MAX; \ 44 if (groupname##__next != SIZE_MAX) { \ 50 groupname##__next = SIZE_MAX; \
|
/openbmc/linux/tools/include/nolibc/ |
H A D | stdint.h | 77 #define SIZE_MAX ((size_t)(__LONG_MAX__) * 2 + 1) macro 82 #define UINTPTR_MAX SIZE_MAX 95 #define UINT_FAST16_MAX SIZE_MAX 96 #define UINT_FAST32_MAX SIZE_MAX
|
/openbmc/u-boot/test/ |
H A D | unicode_ut.c | 256 ut_assert(!unicode_test_u16_strcmp(buf, c1, SIZE_MAX)); in unicode_test_utf8_utf16_strcpy() 261 ut_assert(!unicode_test_u16_strcmp(buf, c2, SIZE_MAX)); in unicode_test_utf8_utf16_strcpy() 266 ut_assert(!unicode_test_u16_strcmp(buf, c3, SIZE_MAX)); in unicode_test_utf8_utf16_strcpy() 271 ut_assert(!unicode_test_u16_strcmp(buf, c4, SIZE_MAX)); in unicode_test_utf8_utf16_strcpy() 277 ut_assert(!unicode_test_u16_strcmp(buf, L"j1?l", SIZE_MAX)); in unicode_test_utf8_utf16_strcpy() 282 ut_assert(!unicode_test_u16_strcmp(buf, L"j2?l", SIZE_MAX)); in unicode_test_utf8_utf16_strcpy() 287 ut_assert(!unicode_test_u16_strcmp(buf, L"j3?", SIZE_MAX)); in unicode_test_utf8_utf16_strcpy() 310 ut_assert(!unicode_test_u16_strcmp(buf, c2, SIZE_MAX)); in unicode_test_utf8_utf16_strncpy() 331 ut_assert(!unicode_test_u16_strcmp(buf, c4, SIZE_MAX)); in unicode_test_utf8_utf16_strncpy() 499 ut_assert(!strncmp(buf, d2, SIZE_MAX)); in unicode_test_utf16_utf8_strncpy() [all …]
|
/openbmc/linux/tools/virtio/ringtest/ |
H A D | ptr_ring.c | 19 #define SIZE_MAX (~(size_t)0) macro 20 #define KMALLOC_MAX_SIZE SIZE_MAX 45 if (size != 0 && n > SIZE_MAX / size) in kmalloc_array()
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-connectivity/krb5/krb5/ |
H A D | CVE-2024-26458_CVE-2024-26461.patch | 62 - if (SIZE_MAX - 300 < message->length) 64 + if (SIZE_MAX - 300 < message->length) { 68 ec_max = SIZE_MAX - message->length - 300; 80 if (encrypt_size > SIZE_MAX / 2) {
|
/openbmc/linux/tools/testing/selftests/mm/ |
H A D | transhuge-stress.c | 38 if (ram > SIZE_MAX / psize() / 4) in main() 39 ram = SIZE_MAX / 4; in main()
|
/openbmc/libpldm/src/ |
H A D | msgbuf.h | 67 INTMAX_MAX != SIZE_MAX, 100 #if INTMAX_MAX < SIZE_MAX in pldm_msgbuf_init_errno() 597 #if INTMAX_MAX < SIZE_MAX in pldm__msgbuf_extract_array_void() 887 #if INTMAX_MAX < SIZE_MAX in pldm__msgbuf_insert_array_void() 960 #if INTMAX_MAX < SIZE_MAX in pldm_msgbuf_span_required() 1159 #if INTMAX_MAX < SIZE_MAX in pldm_msgbuf_skip() 1233 #if INTMAX_MAX < SIZE_MAX in pldm__msgbuf_copy()
|
/openbmc/linux/sound/soc/ti/ |
H A D | udma-pcm.c | 22 .buffer_bytes_max = SIZE_MAX,
|
/openbmc/linux/net/xdp/ |
H A D | xsk_queue.c | 42 if (unlikely(size == SIZE_MAX)) { in xskq_create()
|
/openbmc/libpldm/src/oem/ibm/ |
H A D | platform.c | 28 if (SIZE_MAX / num_handles < sizeof(uint16_t)) { in encode_bios_attribute_update_event_req()
|
/openbmc/u-boot/include/linux/ |
H A D | kernel.h | 19 #ifndef SIZE_MAX 20 #define SIZE_MAX (~(size_t)0) macro
|
/openbmc/linux/tools/virtio/linux/ |
H A D | dma-mapping.h | 44 #define dma_max_mapping_size(...) SIZE_MAX
|
/openbmc/linux/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_chain.c | 262 if (unlikely(size == SIZE_MAX)) in qed_chain_alloc_pbl() 277 if (unlikely(size == SIZE_MAX)) in qed_chain_alloc_pbl()
|
/openbmc/linux/drivers/gpu/drm/etnaviv/ |
H A D | etnaviv_drv.h | 100 if (elem_size && nelem > (SIZE_MAX - base) / elem_size) in size_vstruct()
|
/openbmc/u-boot/include/dm/ |
H A D | device.h | 855 if (size != 0 && n > SIZE_MAX / size) in devm_kmalloc_array() 934 if (size != 0 && n > SIZE_MAX / size) in devm_kmaloc_array()
|
/openbmc/qemu/include/qemu/ |
H A D | osdep.h | 374 #undef SIZE_MAX 375 #define SIZE_MAX ((size_t)-1) macro
|