diff options
author | sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2006-06-16 21:39:08 +0000 |
---|---|---|
committer | sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2006-06-16 21:39:08 +0000 |
commit | 3f5f5560f97cd62f41a8e6dea51da33c2c3d16b5 (patch) | |
tree | 02189b4e293026d257ef051c41fadc27cd258844 /memcheck/mc_main.c | |
parent | a710d49ee04620a6a9b3dec759ee3125c28176ac (diff) |
Fix copy-n-paste error to do with ppc64-linux stack redzone handling
(from r5791).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5973 a5019735-40e9-0310-863c-91ae7b9d1cf9
Diffstat (limited to 'memcheck/mc_main.c')
-rw-r--r-- | memcheck/mc_main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/memcheck/mc_main.c b/memcheck/mc_main.c index 0d297eac..0e3096f9 100644 --- a/memcheck/mc_main.c +++ b/memcheck/mc_main.c @@ -1872,7 +1872,7 @@ void MC_(helperc_MAKE_STACK_UNINIT) ( Addr base, UWord len ) if (EXPECTED_TAKEN( len == 128 && VG_IS_8_ALIGNED(base) )) { /* Now we know the address range is suitably sized and aligned. */ UWord a_lo = (UWord)(base); - UWord a_hi = (UWord)(base + 127); + UWord a_hi = (UWord)(base + 128 - 1); tl_assert(a_lo < a_hi); // paranoia: detect overflow if (a_hi < MAX_PRIMARY_ADDRESS) { // Now we know the entire range is within the main primary map. @@ -1907,10 +1907,10 @@ void MC_(helperc_MAKE_STACK_UNINIT) ( Addr base, UWord len ) } /* 288 bytes (36 ULongs) is the magic value for ELF ppc64. */ - if (EXPECTED_TAKEN( len == 128 && VG_IS_8_ALIGNED(base) )) { + if (EXPECTED_TAKEN( len == 288 && VG_IS_8_ALIGNED(base) )) { /* Now we know the address range is suitably sized and aligned. */ UWord a_lo = (UWord)(base); - UWord a_hi = (UWord)(base + 127); + UWord a_hi = (UWord)(base + 288 - 1); tl_assert(a_lo < a_hi); // paranoia: detect overflow if (a_hi < MAX_PRIMARY_ADDRESS) { // Now we know the entire range is within the main primary map. |