]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Revert r14954. If the end of a segment is 0xfffff.....fffff
authorFlorian Krohm <florian@eich-krohm.de>
Mon, 23 Feb 2015 21:56:16 +0000 (21:56 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Mon, 23 Feb 2015 21:56:16 +0000 (21:56 +0000)
then end + 1 == 0 and any start address will be >= end.
Think some more.....

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14956

coregrind/m_aspacemgr/aspacemgr-linux.c

index 039b0d53e85285edbdf611c8b8182415f119068a..25f304958b6dd562f1969fe405cf7fc824379e8f 100644 (file)
@@ -685,7 +685,7 @@ static Bool sane_NSegment ( const NSegment* s )
    if (s == NULL) return False;
 
    /* No zero sized segments and no wraparounds. */
-   if (s->start >= s->end + 1) return False;
+   if (s->start >= s->end) return False;
 
    /* require page alignment */
    if (!VG_IS_PAGE_ALIGNED(s->start)) return False;