Exetools  

Go Back   Exetools > General > General Discussion

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 03-22-2014, 01:13
mcp mcp is offline
Friend
 
Join Date: Dec 2011
Posts: 73
Rept. Given: 4
Rept. Rcvd 12 Times in 11 Posts
Thanks Given: 7
Thanks Rcvd at 47 Times in 35 Posts
mcp Reputation: 12
@qkumba
Actually, that API is fundamentally broken because it is not free of side effects, e.g., consider the case where you use that API on a guard page. After using that API, that page won't be a guard page anymore!

Due to race conditions, there is no general safe way to test if a pointer is valid, other than making sure it is only obtained for safe addresses. Pretty much any address can become invalid after you tested the pointer, and vice versa.

The right question would be to ask: what are you actually trying to do?
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
question about the function argument-- this pointer zhgong007 General Discussion 4 10-12-2022 09:24
Resolving Stack Pointer problem java3ever General Discussion 1 06-20-2017 13:57
Help Me - CRC Check and FileSize Check byvs General Discussion 11 07-31-2003 13:32


All times are GMT +8. The time now is 00:19.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( Since 1998 )