From: Ronald.Pijnacker@best.ms.philips.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.Pijnacker@best.ms.philips.com
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
To: gnu-win32@cygnus.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@iname.com
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
