[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: valid_pointer_p

From: Kim F. Storm
Subject: Re: valid_pointer_p
Date: Sun, 06 Aug 2006 00:11:30 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

>> Cc: address@hidden
>> From: address@hidden (Kim F. Storm)
>> Date: Mon, 31 Jul 2006 11:01:26 +0200
>> Eli Zaretskii <address@hidden> writes:
>> > If no one else cares about this, I will at least write the code to
>> > DTRT on Windows.  
>> Please do.
> Done.
> Btw, you always try to validate a 16-byte region starting at the
> address P, which might give a false positive if the object is actually
> smaller and happens to be at the end of an allocated page which is
> followed by a page that we cannot access.  Am I missing something?

I validate a 16 area since the pointer is typically something
"vector-like" where the code that access/print that object will look
at data following the immedate byte/word that the pointer addresses.

So I made the "safe choice" of checking 16 bytes.

Kim F. Storm <address@hidden> http://www.cua.dk

reply via email to

[Prev in Thread] Current Thread [Next in Thread]