From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1851) id 719163858C30; Sun, 30 Apr 2023 19:40:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 719163858C30 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1682883633; bh=78R3RFRKfMbk91/xsstAzq8Mh91dw5oLdFypXEUMPzU=; h=From:To:Subject:Date:From; b=D4r/L2Eaaw6v8NKqGdqgPTDwL7jQq+/PqqWOPZH7H3+HfoC3CDWW9fDiFpkVhh5gj pFtm09JTcEvn7qZEo6Hxp9/w99WhXRTpsJSDg2fqHcFczXQlR7RsD7nf+9yCx1ZhYS IOx95Fz6ZmmN/2D+hTd2/ffmTBbpdQSF6uw/Kz1o= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Martin Liska To: gcc-cvs@gcc.gnu.org Subject: [gcc r14-360] hwasan: adjust wording in expected output in tests X-Act-Checkin: gcc X-Git-Author: Martin Liska X-Git-Refname: refs/heads/master X-Git-Oldrev: 54765c875a0ec961e06d56d916d9ad1ddfc3b221 X-Git-Newrev: 84e7d62c3bccb5e5ff9c37353b026f48e1148450 Message-Id: <20230430194033.719163858C30@sourceware.org> Date: Sun, 30 Apr 2023 19:40:33 +0000 (GMT) List-Id: https://gcc.gnu.org/g:84e7d62c3bccb5e5ff9c37353b026f48e1148450 commit r14-360-g84e7d62c3bccb5e5ff9c37353b026f48e1148450 Author: Martin Liska Date: Sun Apr 30 21:39:19 2023 +0200 hwasan: adjust wording in expected output in tests gcc/testsuite/ChangeLog: * c-c++-common/hwasan/asan-pr70541.c: Adjust wording of expected output. * c-c++-common/hwasan/heap-overflow.c: Likewise. * c-c++-common/hwasan/sanity-check-pure-c.c: Likewise. * c-c++-common/hwasan/use-after-free.c: Likewise. Diff: --- gcc/testsuite/c-c++-common/hwasan/asan-pr70541.c | 2 +- gcc/testsuite/c-c++-common/hwasan/heap-overflow.c | 4 ++-- gcc/testsuite/c-c++-common/hwasan/sanity-check-pure-c.c | 4 ++-- gcc/testsuite/c-c++-common/hwasan/use-after-free.c | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gcc/testsuite/c-c++-common/hwasan/asan-pr70541.c b/gcc/testsuite/c-c++-common/hwasan/asan-pr70541.c index ba2ed496e6e..be534dfd231 100644 --- a/gcc/testsuite/c-c++-common/hwasan/asan-pr70541.c +++ b/gcc/testsuite/c-c++-common/hwasan/asan-pr70541.c @@ -33,4 +33,4 @@ int main() { /* { dg-output "HWAddressSanitizer: tag-mismatch on address 0x\[0-9a-f\]*.*" } */ /* { dg-output "READ of size 4 at 0x\[0-9a-f\]* tags: \[\[:xdigit:\]\]\[\[:xdigit:\]\]/\[\[:xdigit:\]\]\[\[:xdigit:\]\] \\(ptr/mem\\) in thread T0.*" } */ /* { dg-output "freed by thread T0 here:.*" } */ -/* { dg-output "previously allocated here:" } */ +/* { dg-output "previously allocated by thread T0 here:" } */ diff --git a/gcc/testsuite/c-c++-common/hwasan/heap-overflow.c b/gcc/testsuite/c-c++-common/hwasan/heap-overflow.c index a5a37715925..e424d8bcb12 100644 --- a/gcc/testsuite/c-c++-common/hwasan/heap-overflow.c +++ b/gcc/testsuite/c-c++-common/hwasan/heap-overflow.c @@ -24,6 +24,6 @@ int main(int argc, char **argv) { /* { dg-output "HWAddressSanitizer: tag-mismatch on address 0x\[0-9a-f\]*.*" } */ /* { dg-output "READ of size 1 at 0x\[0-9a-f\]* tags: \[\[:xdigit:\]\]\[\[:xdigit:\]\]/\[\[:xdigit:\]\]\[\[:xdigit:\]\].* \\(ptr/mem\\) in thread T0.*" } */ -/* { dg-output "located 0 bytes after 10-byte region.*" } */ -/* { dg-output "allocated here:.*" } */ +/* { dg-output "located 0 bytes after a 10-byte region.*" } */ +/* { dg-output "allocated by thread T0 here:.*" } */ /* { dg-output "#1 0x\[0-9a-f\]+ +in _*main \[^\n\r]*heap-overflow.c:18" } */ diff --git a/gcc/testsuite/c-c++-common/hwasan/sanity-check-pure-c.c b/gcc/testsuite/c-c++-common/hwasan/sanity-check-pure-c.c index a42921bb44c..4e557000458 100644 --- a/gcc/testsuite/c-c++-common/hwasan/sanity-check-pure-c.c +++ b/gcc/testsuite/c-c++-common/hwasan/sanity-check-pure-c.c @@ -20,6 +20,6 @@ int main() { /* { dg-output "HWAddressSanitizer: tag-mismatch on address 0x\[0-9a-f\]*.*" } */ /* { dg-output "READ of size 1 at 0x\[0-9a-f\]* tags: \[\[:xdigit:\]\]\[\[:xdigit:\]\]/\[\[:xdigit:\]\]\[\[:xdigit:\]\] \\(ptr/mem\\) in thread T0.*" } */ -/* { dg-output "located 5 bytes inside of 10-byte region.*" } */ +/* { dg-output "located 5 bytes inside a 10-byte region.*" } */ /* { dg-output "freed by thread T0 here:.*" } */ -/* { dg-output "previously allocated here:" } */ +/* { dg-output "previously allocated by thread T0 here:" } */ diff --git a/gcc/testsuite/c-c++-common/hwasan/use-after-free.c b/gcc/testsuite/c-c++-common/hwasan/use-after-free.c index 41a356999aa..b058982935f 100644 --- a/gcc/testsuite/c-c++-common/hwasan/use-after-free.c +++ b/gcc/testsuite/c-c++-common/hwasan/use-after-free.c @@ -21,8 +21,8 @@ int main() { /* { dg-output "HWAddressSanitizer: tag-mismatch on address 0x\[0-9a-f\]*.*" } */ /* { dg-output "READ of size 1 at 0x\[0-9a-f\]* tags: \[\[:xdigit:\]\]\[\[:xdigit:\]\]/\[\[:xdigit:\]\]\[\[:xdigit:\]\] \\(ptr/mem\\) in thread T0.*" } */ -/* { dg-output "is located 5 bytes inside of 10-byte region.*" } */ +/* { dg-output "is located 5 bytes inside a 10-byte region.*" } */ /* { dg-output "freed by thread T0 here:.*" } */ /* { dg-output "#1\[^\n\r]*main\[^\n\r]*use-after-free.c:17.*" } */ -/* { dg-output "previously allocated here:.*" } */ +/* { dg-output "previously allocated by thread T0 here:.*" } */ /* { dg-output "#1\[^\n\r]*main\[^\n\r]*use-after-free.c:16" } */