|
From: <sv...@va...> - 2006-05-09 09:07:14
|
Author: tom
Date: 2006-05-09 10:06:56 +0100 (Tue, 09 May 2006)
New Revision: 5888
Log:
Ignore offset information in anonymous mmap calls. Fixes bug #126722.
Modified:
trunk/coregrind/m_aspacemgr/aspacemgr.c
Modified: trunk/coregrind/m_aspacemgr/aspacemgr.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_aspacemgr/aspacemgr.c 2006-05-08 12:08:49 UTC (rev =
5887)
+++ trunk/coregrind/m_aspacemgr/aspacemgr.c 2006-05-09 09:06:56 UTC (rev =
5888)
@@ -2104,11 +2104,11 @@
seg.kind =3D (flags & VKI_MAP_ANONYMOUS) ? SkAnonC : SkFileC;
seg.start =3D a;
seg.end =3D a + len - 1;
- seg.offset =3D offset;
seg.hasR =3D toBool(prot & VKI_PROT_READ);
seg.hasW =3D toBool(prot & VKI_PROT_WRITE);
seg.hasX =3D toBool(prot & VKI_PROT_EXEC);
if (!(flags & VKI_MAP_ANONYMOUS)) {
+ seg.offset =3D offset;
if (get_inode_for_fd(fd, &dev, &ino, &mode)) {
seg.dev =3D dev;
seg.ino =3D ino;
|