|
From: <sv...@va...> - 2015-02-24 11:23:59
|
Author: florian
Date: Tue Feb 24 11:23:51 2015
New Revision: 14957
Log:
Fix an off-by-one error - this time, do it right.
A segment with start == end is not empty.
Modified:
trunk/coregrind/m_aspacemgr/aspacemgr-linux.c
Modified: trunk/coregrind/m_aspacemgr/aspacemgr-linux.c
==============================================================================
--- trunk/coregrind/m_aspacemgr/aspacemgr-linux.c (original)
+++ trunk/coregrind/m_aspacemgr/aspacemgr-linux.c Tue Feb 24 11:23:51 2015
@@ -685,7 +685,7 @@
if (s == NULL) return False;
/* No zero sized segments and no wraparounds. */
- if (s->start >= s->end) return False;
+ if (s->start > s->end) return False;
/* require page alignment */
if (!VG_IS_PAGE_ALIGNED(s->start)) return False;
|
|
From: <sv...@va...> - 2015-02-25 17:31:48
|
Author: florian
Date: Tue Feb 24 11:23:51 2015
New Revision: 14957
Log:
Fix an off-by-one error - this time, do it right.
A segment with start == end is not empty.
Modified:
trunk/coregrind/m_aspacemgr/aspacemgr-linux.c
Modified: trunk/coregrind/m_aspacemgr/aspacemgr-linux.c
==============================================================================
--- trunk/coregrind/m_aspacemgr/aspacemgr-linux.c (original)
+++ trunk/coregrind/m_aspacemgr/aspacemgr-linux.c Tue Feb 24 11:23:51 2015
@@ -685,7 +685,7 @@
if (s == NULL) return False;
/* No zero sized segments and no wraparounds. */
- if (s->start >= s->end) return False;
+ if (s->start > s->end) return False;
/* require page alignment */
if (!VG_IS_PAGE_ALIGNED(s->start)) return False;
|
|
From: <sv...@va...> - 2015-02-25 17:54:42
|
Author: florian
Date: Tue Feb 24 11:23:51 2015
New Revision: 14957
Log:
Fix an off-by-one error - this time, do it right.
A segment with start == end is not empty.
Modified:
trunk/coregrind/m_aspacemgr/aspacemgr-linux.c
Modified: trunk/coregrind/m_aspacemgr/aspacemgr-linux.c
==============================================================================
--- trunk/coregrind/m_aspacemgr/aspacemgr-linux.c (original)
+++ trunk/coregrind/m_aspacemgr/aspacemgr-linux.c Tue Feb 24 11:23:51 2015
@@ -685,7 +685,7 @@
if (s == NULL) return False;
/* No zero sized segments and no wraparounds. */
- if (s->start >= s->end) return False;
+ if (s->start > s->end) return False;
/* require page alignment */
if (!VG_IS_PAGE_ALIGNED(s->start)) return False;
|