]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Assertion is too restrictive; it's possible to validly get an
authorJulian Seward <jseward@acm.org>
Mon, 22 May 2006 13:59:42 +0000 (13:59 +0000)
committerJulian Seward <jseward@acm.org>
Mon, 22 May 2006 13:59:42 +0000 (13:59 +0000)
addressibility error when MC_(clo_undef_value_errors) is True.

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

memcheck/mc_main.c

index b28e80eb27fdad5d9bc19a5eacf8d8fc4527f397..e4b87cf95c273fcb0d209847e83f022f5d5cf59d 100644 (file)
@@ -2619,7 +2619,7 @@ static void mc_record_param_error ( ThreadId tid, Addr a, Bool isReg,
 {
    MC_Error err_extra;
 
-   tl_assert(MC_(clo_undef_value_errors));
+   if (!isUnaddr) tl_assert(MC_(clo_undef_value_errors));
    tl_assert(VG_INVALID_THREADID != tid);
    if (isUnaddr) tl_assert(!isReg);    // unaddressable register is impossible
    mc_clear_MC_Error( &err_extra );