Home
last modified time | relevance | path

Searched refs:os_mul_and_add_overflow (Results 1 – 13 of 13) sorted by relevance

/xnu-8792.41.9/libkern/os/
H A Doverflow.h94 #define os_mul_and_add_overflow(a, x, b, res) __os_warn_unused(__extension__({ \ macro
/xnu-8792.41.9/san/coverage/
H A Dkcov_ksancov.c437 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 Dspawn_internal.h64 if (os_mul_and_add_overflow(_ps_count, \
H A Ddtrace.h1478 if (os_mul_and_add_overflow(_sym_count, \
/xnu-8792.41.9/bsd/kern/
H A Dchunklist.c362 …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 Dkalloc.h1065 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 Dkern_cdata.c293 …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 DIOLib.h85 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 Ddevfs_fdesc_support.c324 if (os_mul_and_add_overflow(fd, 10, *pname++ - '0', &fd)) { in devfs_devfd_lookup()
/xnu-8792.41.9/iokit/Kernel/
H A DIOLib.cpp742 if (os_mul_and_add_overflow(2, size, sizeofIOLibPageMallocHeader, &adjustedSize)) { in IOKernelAllocateWithPhysicalRestrict()
H A DIOUserServer.cpp304 …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 Dipc_kmsg.c1725 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 Dkxld_object.c511 boolean_t ovr = os_mul_and_add_overflow(fat->nfat_arch, sizeof(*archs), sizeof(*fat), &arch_size); in get_macho_slice_for_arch()