]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Refined assert statements.
authorBart Van Assche <bvanassche@acm.org>
Fri, 2 May 2008 19:21:02 +0000 (19:21 +0000)
committerBart Van Assche <bvanassche@acm.org>
Fri, 2 May 2008 19:21:02 +0000 (19:21 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7993

exp-drd/drd_clientreq.c

index 053c14c51162e59458f29b20ba548b21d610f4bb..8b86cde987f4c334f9fa56f4c9e8029c1a822618 100644 (file)
@@ -99,12 +99,12 @@ static Addr highest_used_stack_address(const ThreadId vg_tid)
     /* Paranoia ... */
     tl_assert(VG_(thread_get_stack_max)(vg_tid)
               - VG_(thread_get_stack_size)(vg_tid) <= VG_(get_SP)(vg_tid)
-              && VG_(get_SP)(vg_tid) <= VG_(thread_get_stack_max)(vg_tid));
+              && VG_(get_SP)(vg_tid) < VG_(thread_get_stack_max)(vg_tid));
 
     husa = (nframes >= 1 ? sps[nframes - 1] : VG_(get_SP)(vg_tid));
     tl_assert(VG_(thread_get_stack_max)(vg_tid)
               - VG_(thread_get_stack_size)(vg_tid) <= husa
-              && husa <= VG_(thread_get_stack_max)(vg_tid));
+              && husa < VG_(thread_get_stack_max)(vg_tid));
     return husa;
 }