delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/06/26/20:33:53

From: Ronald DOT Pijnacker AT best DOT ms DOT philips DOT com (Ronald Pijnacker)
Subject: Bug in mmap
26 Jun 1998 20:33:53 -0700 :
Message-ID: <199806260640.IAA00624.cygnus.gnu-win32@surgery1.best.ms.philips.com>
Reply-To: Ronald DOT Pijnacker AT best DOT ms DOT philips DOT com
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com (cygwin)

Hi all,

I believe I have found a bug in the mmap routine. It manifests itself
when an offset is given that is not zero.

In WindowsNT, when a MapViewOfFile of length `len' is performed at
offset `off', the CreateFileMapping must have at least length
`len'+`off', otherwise the MapViewOfFile function returns an error
(1132, I think).

I have had a look in mmap.cc. The CreateFileMapping function is called
here with length `len'. I believe this should be changed to
`len'+`off'.

Regards,

Ronald Pijnacker
rhp AT iname DOT com
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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