Home
last modified time | relevance | path

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

12

/openbmc/u-boot/include/
H A Dcharset.h62 #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/u-boot/test/
H A Dunicode_ut.c256 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/libpldm/src/msgbuf/
H A Dcore.h62 INTMAX_MAX != SIZE_MAX,
142 #if INTMAX_MAX < SIZE_MAX in pldm__msgbuf_init_errno()
705 #if INTMAX_MAX < SIZE_MAX in pldm__msgbuf_extract_array_void()
999 #if INTMAX_MAX < SIZE_MAX in pldm__msgbuf_insert_array_void()
1045 #if INTMAX_MAX < SIZE_MAX in pldm__msgbuf_span_required()
1290 #if INTMAX_MAX < SIZE_MAX in pldm__msgbuf_span_until()
1360 #if INTMAX_MAX < SIZE_MAX in pldm_msgbuf_skip()
1441 #if INTMAX_MAX < SIZE_MAX in pldm__msgbuf_copy()
1536 static_assert(SIZE_MAX >= UINT8_MAX, "Invalid promotion"); in pldm__msgbuf_extract_uint8_to_size()
1567 static_assert(SIZE_MAX >= UINT16_MAX, "Invalid promotion"); in pldm__msgbuf_extract_uint16_to_size()
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-connectivity/krb5/krb5/
H A DCVE-2024-26458_CVE-2024-26461.patch62 - 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/libpldm/src/oem/ibm/
H A Dplatform.c28 if (SIZE_MAX / num_handles < sizeof(uint16_t)) { in encode_bios_attribute_update_event_req()
/openbmc/u-boot/include/linux/
H A Dkernel.h19 #ifndef SIZE_MAX
20 #define SIZE_MAX (~(size_t)0) macro
H A Dcompat.h81 if (size != 0 && n > SIZE_MAX / size) in kmalloc_array()
/openbmc/u-boot/include/dm/
H A Ddevice.h855 if (size != 0 && n > SIZE_MAX / size) in devm_kmalloc_array()
934 if (size != 0 && n > SIZE_MAX / size) in devm_kmaloc_array()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-devtools/yajl/yajl/
H A DCVE-2022-24795.patch44 + /* We cannot allocate more memory than SIZE_MAX. */
/openbmc/qemu/include/block/
H A Dblock-common.h272 #define BDRV_REQUEST_MAX_SECTORS MIN_CONST(SIZE_MAX >> BDRV_SECTOR_BITS, \
/openbmc/phosphor-logging/test/
H A Dlog_manager_dbus_tests.cpp106 SIZE_MAX); in last_journal_entry()
/openbmc/libpldm/src/oem/meta/
H A Dfile_io.c71 if (SIZE_MAX - sizeof(*request_msg) < payload_length) { in decode_oem_meta_file_io_req()
/openbmc/obmc-console/
H A Dconsole-dbus.c200 server->dbus_pollfd_index = SIZE_MAX; in dbus_server_fini()
H A Dconsole-server.c508 server->tty_pollfd_index = SIZE_MAX; in tty_fini()
/openbmc/u-boot/lib/efi_loader/
H A Defi_file.c413 if (bs <= SIZE_MAX) in efi_file_read()
416 *buffer_size = SIZE_MAX; in efi_file_read()
/openbmc/libpldm/src/dsp/
H A Dfru.c187 if (SIZE_MAX - *curr_size < record_hdr_size) { in encode_fru_record()
191 if (SIZE_MAX - (*curr_size + record_hdr_size) < tlvs_size) { in encode_fru_record()
H A Dplatform.c31 if (SIZE_MAX - (sizeof(*effecter) - sizeof(effecter->possible_states)) < in encode_state_effecter_pdr()
112 if (SIZE_MAX - (sizeof(*sensor) - sizeof(sensor->possible_states)) < in encode_state_sensor_pdr()
1332 if ((SIZE_MAX - PLDM_PLATFORM_EVENT_MESSAGE_MIN_REQ_BYTES) < in encode_platform_event_message_req()
/openbmc/qemu/util/
H A Doslib-posix.c833 if (pages > SIZE_MAX / qemu_real_host_page_size()) { in qemu_get_host_physmem()
834 return SIZE_MAX; in qemu_get_host_physmem()
/openbmc/qemu/block/
H A Dstream.c49 assert(bytes < SIZE_MAX); in stream_populate()
H A Dcommit.c167 assert(bytes < SIZE_MAX); in commit_iteration()
/openbmc/libmctp/tests/
H A Dtest_core.c388 SIZE_MAX - sizeof(struct mctp_hdr), in mctp_core_test_drop_large_fragments()
703 static_assert(ARRAY_SIZE(mctp_core_tests) < SIZE_MAX, "size"); in main()
/openbmc/qemu/tests/tcg/multiarch/
H A Dtest-mmap.c456 addr = mremap((void *)((uintptr_t)pagesize * 10), SIZE_MAX & ~(size_t)pagemask, pagesize, 0); in check_invalid_mmaps()
/openbmc/phosphor-power/phosphor-power-supply/
H A Dpower_supply.cpp710 if (readFail < SIZE_MAX) in analyze()
H A Dnew_power_supply.cpp725 if (readFail < SIZE_MAX) in analyze()
/openbmc/libmctp/
H A Dcore.c303 static_assert(ARRAY_SIZE(mctp->msg_ctxs) < SIZE_MAX, "size"); in mctp_cleanup()

12