this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: _kernelrpc_mach_vm_deallocate_trap_impl accepts NULL with size 0

+12
+12
src/kernel/emulation/linux/mach/mach_traps.c
··· 214 214 } 215 215 else 216 216 { 217 + // XNU returns KERN_INVALID_ARGUMENT for address overflow, 218 + // and allows NULL address if size is 0. 219 + if (address + size < address) 220 + { 221 + return KERN_INVALID_ARGUMENT; 222 + } 223 + 224 + if (size == (mach_vm_offset_t)0) 225 + { 226 + return KERN_SUCCESS; 227 + } 228 + 217 229 ret = munmap(address, size); 218 230 219 231 if (ret == -1)