Re: kernel panic on readBytes
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com User-agent: Thunderbird 2.0.0.12 (X11/20080228) Timur Alperovich wrote: struct IOPhysicalRange* range = (IOPhysicalRange*)IOMalloc(sizeof(struct IOPhysicalRange)); range->address = inStruct->offset; range->length = MEM_READ_CHUNK; William Kucharski _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... While it's not the cause of your panic, you should at the very least be checking to see whether IOMalloc returned a valid pointer or 0 before you dereference "range." But given the DAR is 0x1000, it's clear you're likely dereferencing a NULL pointer at offset 0x1000; what's at 0xB3E40? What's instruct->offset? This email sent to site_archiver@lists.apple.com
participants (1)
-
William Kucharski