[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: HeapFree and IsBadReadPtr
From:       Ian Schmidt <ischmidt () cfl ! rr ! com>
Date:       1999-08-21 21:37:34
[Download RAW message or body]

Uwe Bonnes wrote:

> What should IsBadReadPtr on a just freed Heappointer?

Hi Uwe,

I just tried this in Win98.  If the size passed to IsBadReadPtr() is 4k or less it \
returns zero (memory is OK).  If the size is greater than 4k it returns nonzero.  So \
it seems like the first page of the pointer is OK immediately after HeapFree but the \
rest isn't.  The actual allocation size and presence/absence of other allocated \
blocks in the heap don't seem to matter.

Hope this helps,
-Ian Schmidt
ischmidt@cfl.rr.com



=========================================================================


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic