public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Fix sanitizer/68042
@ 2015-10-22 16:47 Maxim Ostapenko
  2015-10-22 19:29 ` Jeff Law
  0 siblings, 1 reply; 2+ messages in thread
From: Maxim Ostapenko @ 2015-10-22 16:47 UTC (permalink / raw)
  To: GCC Patches; +Cc: Dominique Dhumieres

[-- Attachment #1: Type: text/plain, Size: 308 bytes --]

Hi,

currently we have memcmp-1.c and sanity-check-pure-c-1.c (ASan 
testsuite) output pattern test failures on x86_64-apple-darwin14. This 
patch adjusts their expecting patterns to match real ones.

Tested by me on x86_64-unknown-linux-gnu and by Dominique on 
x86_64-apple-darwin14.

Ok to apply?

-Maxim

[-- Attachment #2: darwin-tests-1.diff --]
[-- Type: text/x-patch, Size: 1879 bytes --]

gcc/testsuite/ChangeLog:

2015-10-22  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>

	PR sanitizer/68042
	* c-c++-common/asan/memcmp-1.c: Adjust test to pass on Darwin.
	* c-c++-common/asan/sanity-check-pure-c-1.c: Likewise.

Index: gcc/testsuite/c-c++-common/asan/memcmp-1.c
===================================================================
--- gcc/testsuite/c-c++-common/asan/memcmp-1.c	(revision 229169)
+++ gcc/testsuite/c-c++-common/asan/memcmp-1.c	(working copy)
@@ -16,5 +16,5 @@
 }
 
 /* { dg-output "ERROR: AddressSanitizer: stack-buffer-overflow.*(\n|\r\n|\r)" } */
-/* { dg-output "    #0 0x\[0-9a-f\]+ +(in _*(interceptor_|wrap_|)memcmp |\[(\])\[^\n\r]*(\n|\r\n|\r)" } */
+/* { dg-output "    #0 0x\[0-9a-f\]+ +(in _*(interceptor_|wrap_|)memcmp|\[(\])\[^\n\r]*(\n|\r\n|\r)" } */
 /* { dg-output "    #1 0x\[0-9a-f\]+ +(in _*main|\[(\])\[^\n\r]*(\n|\r\n|\r)" } */
Index: gcc/testsuite/c-c++-common/asan/sanity-check-pure-c-1.c
===================================================================
--- gcc/testsuite/c-c++-common/asan/sanity-check-pure-c-1.c	(revision 229169)
+++ gcc/testsuite/c-c++-common/asan/sanity-check-pure-c-1.c	(working copy)
@@ -10,7 +10,7 @@
 }
 
 /* { dg-output "heap-use-after-free.*(\n|\r\n|\r)" } */
-/* { dg-output "    #0 \[^\n\r]*(in _*(interceptor_|)free|\[(\])\[^\n\r]*(\n|\r\n|\r)" } */
+/* { dg-output "    #0 \[^\n\r]*(in _*(interceptor_|wrap_)free|\[(\])\[^\n\r]*(\n|\r\n|\r)" } */
 /* { dg-output "    #1 \[^\n\r]*(in _*main (\[^\n\r]*sanity-check-pure-c-1.c:8|\[^\n\r]*:0)|\[(\]).*(\n|\r\n|\r)" } */
-/* { dg-output "    #0 \[^\n\r]*(in _*(interceptor_|)malloc|\[(\])\[^\n\r]*(\n|\r\n|\r)" } */
+/* { dg-output "    #0 \[^\n\r]*(in _*(interceptor_|wrap_)malloc|\[(\])\[^\n\r]*(\n|\r\n|\r)" } */
 /* { dg-output "    #1 \[^\n\r]*(in _*main (\[^\n\r]*sanity-check-pure-c-1.c:7|\[^\n\r]*:0)|\[(\])\[^\n\r]*(\n|\r\n|\r)" } */

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fix sanitizer/68042
  2015-10-22 16:47 [PATCH] Fix sanitizer/68042 Maxim Ostapenko
@ 2015-10-22 19:29 ` Jeff Law
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Law @ 2015-10-22 19:29 UTC (permalink / raw)
  To: Maxim Ostapenko, GCC Patches; +Cc: Dominique Dhumieres

On 10/22/2015 10:45 AM, Maxim Ostapenko wrote:
> Hi,
>
> currently we have memcmp-1.c and sanity-check-pure-c-1.c (ASan
> testsuite) output pattern test failures on x86_64-apple-darwin14. This
> patch adjusts their expecting patterns to match real ones.
>
> Tested by me on x86_64-unknown-linux-gnu and by Dominique on
> x86_64-apple-darwin14.
>
> Ok to apply?
OK.
jeff

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-10-22 19:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-22 16:47 [PATCH] Fix sanitizer/68042 Maxim Ostapenko
2015-10-22 19:29 ` Jeff Law

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).