delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/06/27/01:46:19

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Subject: RE: pthreads works, sorta
MIME-Version: 1.0
Date: Wed, 27 Jun 2001 15:33:27 +1000
Message-ID: <EA18B9FA0FE4194AA2B4CDB91F73C0EF08F0A4@itdomain002.itdomain.net.au>
content-class: urn:content-classes:message
X-MimeOLE: Produced By Microsoft Exchange V6.0.4417.0
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: pthreads works, sorta
Thread-Index: AcD+ymCmIReYs/HXQvST/Nyrk3jZBQAADCOw
From: "Robert Collins" <robert DOT collins AT itdomain DOT com DOT au>
To: "Tak Ota" <Takaaki DOT Ota AT am DOT sony DOT com>, <cygwin AT cygwin DOT com>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id BAA31675

I'm not sure you can get write but not read memory in win32. Can you? If
you can, then yes checking both should be done.

Rob
 

> -----Original Message-----
> From: Tak Ota [mailto:Takaaki DOT Ota AT am DOT sony DOT com]
> Sent: Wednesday, June 27, 2001 3:41 PM
> To: cygwin AT cygwin DOT com
> Subject: Re: pthreads works, sorta
> 
> 
> How about using IsBadReadPtr in addition to IsBadWritePtr?
> 
> -Tak
> 
> On Wed, 27 Jun 2001 01:29:32 -0400, Christopher Faylor 
> <cgf AT redhat DOT com> wrote:
> 
> > On Wed, Jun 27, 2001 at 01:10:35PM +1000, Robert Collins wrote:
> > >> -----Original Message-----
> > >> From: Greg Smith [mailto:gsmith AT nc DOT rr DOT com]
> > > 
> > >> 
> > >> 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/
> 
> --
> 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/
> 
> 

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019