Hi all,

Deja pattern in r214086's test is too strict (Asan runtime will not always be able to detect that invalid memory access is use-after-poison). I've cooked a trivial patch to loosen the check so test now also works on i386.

Tested on x64 and i386. Ok to commit?

-Y
commit aa3258be3749174a407185835a0484ebcbaf9bd3
Author: Yury Gribov <y.gri...@samsung.com>
Date:   Mon Aug 25 12:04:01 2014 +0400

    2014-08-26  Yury Gribov  <y.gri...@samsung.com>
    
    	* c-c++-common/asan/pr62089.c: Fix test on 32-bit platforms.

diff --git a/gcc/testsuite/c-c++-common/asan/pr62089.c b/gcc/testsuite/c-c++-common/asan/pr62089.c
index 22b877b..b436b41 100644
--- a/gcc/testsuite/c-c++-common/asan/pr62089.c
+++ b/gcc/testsuite/c-c++-common/asan/pr62089.c
@@ -34,4 +34,4 @@ main () {
   return 0;
 }
 
-/* { dg-output "ERROR: AddressSanitizer: use-after-poison" } */
+/* { dg-output "ERROR: AddressSanitizer:\[^\n\r]*on address\[^\n\r]*" } */

Reply via email to