Searched refs:os_mul_and_add_overflow (Results 1 – 13 of 13) sorted by relevance
| /xnu-8792.41.9/libkern/os/ |
| H A D | overflow.h | 94 #define os_mul_and_add_overflow(a, x, b, res) __os_warn_unused(__extension__({ \ macro
|
| /xnu-8792.41.9/san/coverage/ |
| H A D | kcov_ksancov.c | 437 if (os_mul_and_add_overflow(maxpcs, sizeof(ksancov_trace_pc_ent_t), in ksancov_trace_alloc() 442 if (os_mul_and_add_overflow(maxpcs, sizeof(ksancov_trace_stksize_ent_t), in ksancov_trace_alloc()
|
| /xnu-8792.41.9/bsd/sys/ |
| H A D | spawn_internal.h | 64 if (os_mul_and_add_overflow(_ps_count, \
|
| H A D | dtrace.h | 1478 if (os_mul_and_add_overflow(_sym_count, \
|
| /xnu-8792.41.9/bsd/kern/ |
| H A D | chunklist.c | 362 …if (os_mul_and_add_overflow(hdr->cl_chunk_count, sizeof(struct chunklist_chunk), hdr->cl_chunk_off… in validate_chunklist()
|
| /xnu-8792.41.9/osfmk/kern/ |
| H A D | kalloc.h | 1065 if (__improbable(os_mul_and_add_overflow(i, e_sz, offs, &s))) { \ 1269 if (os_mul_and_add_overflow(s2, c2, s1, &s1) || (s1 & limit)) { in kt_size()
|
| H A D | kern_cdata.c | 293 …if (os_mul_and_add_overflow(num_items, sizeof(struct kcdata_item), max_padding_bytes, &max_padding… in kcdata_estimate_required_buffer_size()
|
| /xnu-8792.41.9/iokit/IOKit/ |
| H A D | IOLib.h | 85 if (os_mul_and_add_overflow(elem_size, elem_count, s, &s) || (s & limit)) { in IOMallocArraySize()
|
| /xnu-8792.41.9/bsd/miscfs/devfs/ |
| H A D | devfs_fdesc_support.c | 324 if (os_mul_and_add_overflow(fd, 10, *pname++ - '0', &fd)) { in devfs_devfd_lookup()
|
| /xnu-8792.41.9/iokit/Kernel/ |
| H A D | IOLib.cpp | 742 if (os_mul_and_add_overflow(2, size, sizeofIOLibPageMallocHeader, &adjustedSize)) { in IOKernelAllocateWithPhysicalRestrict()
|
| H A D | IOUserServer.cpp | 304 …bool overflow = os_mul_and_add_overflow(channelList->nchannels, sizeof(IOReportChannel), sizeof(IO… in _ConfigureReport() 335 …bool overflow = os_mul_and_add_overflow(channelList->nchannels, sizeof(IOReportChannel), sizeof(IO… in _UpdateReport() 352 …overflow = overflow || os_mul_and_add_overflow(count, sizeof(IOReportElement), length, &new_length… in _UpdateReport()
|
| /xnu-8792.41.9/osfmk/ipc/ |
| H A D | ipc_kmsg.c | 1725 if (os_mul_and_add_overflow(user_descs, KERNEL_DESC_SIZE, in ipc_kmsg_alloc() 1734 if (os_mul_and_add_overflow(user_descs, MACH_MSG_DESC_MIN_SIZE, in ipc_kmsg_alloc()
|
| /xnu-8792.41.9/libkern/kxld/ |
| H A D | kxld_object.c | 511 boolean_t ovr = os_mul_and_add_overflow(fat->nfat_arch, sizeof(*archs), sizeof(*fat), &arch_size); in get_macho_slice_for_arch()
|