From: Julian Seward Date: Mon, 22 May 2006 13:59:42 +0000 (+0000) Subject: Assertion is too restrictive; it's possible to validly get an X-Git-Tag: svn/VALGRIND_3_2_0~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84f71ab2f3b5d1bb32654325b27b0a72057a5612;p=thirdparty%2Fvalgrind.git Assertion is too restrictive; it's possible to validly get an addressibility error when MC_(clo_undef_value_errors) is True. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5922 --- diff --git a/memcheck/mc_main.c b/memcheck/mc_main.c index b28e80eb27..e4b87cf95c 100644 --- a/memcheck/mc_main.c +++ b/memcheck/mc_main.c @@ -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 );