|
From: <sv...@va...> - 2015-02-23 19:57:21
|
Author: florian
Date: Mon Feb 23 19:57:12 2015
New Revision: 14954
Log:
Fix an off-by-one error. 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 Mon Feb 23 19:57:12 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 + 1) return False;
/* require page alignment */
if (!VG_IS_PAGE_ALIGNED(s->start)) return False;
|