]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Change the minimum allowable value of aspacem_minAddr to
authorFlorian Krohm <florian@eich-krohm.de>
Fri, 27 Mar 2015 08:47:22 +0000 (08:47 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Fri, 27 Mar 2015 08:47:22 +0000 (08:47 +0000)
be VKI_PAGE_SIZE. That follows from the requirement that
the address ought to be page aligned and > 0.

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

coregrind/m_aspacemgr/aspacemgr-linux.c

index 4568b7dc5018eebfd2bfec7b71e03778a01be47c..c996908545531fc017d32f9feff09192b40ececb 100644 (file)
@@ -1606,7 +1606,7 @@ static void read_maps_callback ( Addr addr, SizeT len, UInt prot,
 Bool
 VG_(am_is_valid_for_aspacem_minAddr)( Addr addr, const HChar **errmsg )
 {
-   const Addr min = 0x1000;      // 1 page   FIXME: VKI_PAGE_SIZE ?
+   const Addr min = VKI_PAGE_SIZE;
 #if VG_WORDSIZE == 4
    const Addr max = 0x40000000;  // 1Gb
 #else