On Wed, Jun 27, 2001 at 01:10:35PM +1000, Robert Collins wrote: >> -----Original Message----- >> From: Greg Smith [mailto:[EMAIL PROTECTED]] > >> >> More experimenting with my home computer, dual pIII 850: >> >> 1. 117 157 328 >> 2. 822 1527 --- >> 3. 194 240 453 >> 4. 169 181 516 >> >As usual, I write a missive, then solve the puzzle. > >try this: > > >int __stdcall >check_valid_pointer (void *pointer) >{ > if (!pointer || IsBadWritePtr(pointer, sizeof (verifyable_object))) > return EFAULT; > return 0; >} This is not quite the same thing as VirtualQuery. This verifies that the process can write to memory. It doesn't verify that it is accessible. Maybe that is not important but I would have to think about this. Nice find, though, Rob. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
- Re: pthreads works, sorta Christopher Faylor
- Re: Blunt Tools (was: cgf does not want private em... Greg Smith
- Re: Blunt Tools (was: cgf does not want privat... Christopher Faylor
- RE: pthreads works, sorta Robert Collins
- Re: pthreads works, sorta Ross Smith
- Re: pthreads works, sorta Dmitry Timoshkov
- Re: pthreads works, sorta Christopher Faylor
- Re: pthreads works, sorta Christopher Faylor
- RE: pthreads works, sorta Robert Collins
- Re: pthreads works, sorta Greg Smith
- Re: pthreads works, sorta Christopher Faylor
- Re: pthreads works, sorta Christopher Faylor
- Re: pthreads works, sorta Robert Collins
- Re: pthreads works, sorta Robert Collins
- Re: pthreads works, sorta Robert Collins
- Re: pthreads works, sorta - got i... Robert Collins
- Re: pthreads works, sorta - g... Christopher Faylor
- Re: pthreads works, sorta Tak Ota
- RE: pthreads works, sorta Robert Collins
- Re: pthreads works, sorta Greg Smith
- RE: pthreads works, sorta Robert Collins