From patchwork Mon Jun 23 16:55:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: max X-Patchwork-Id: 363055 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 50EBE140077 for ; Tue, 24 Jun 2014 02:56:30 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:cc:subject:references :in-reply-to:content-type; q=dns; s=default; b=pwze8zgUQCgebMYcC i7Z4zUQyAv7cqAocMv5WAFKIMpkznU33ImnF3gdcB0a8TiF7ICP/BucH3KhKpSg2 /SLhTYkDDEXG/rSYKjRH3ED4UbxktzNfeFmcjd6ukWEKx1AngukUOV0CxzgIba+n GyaJv7SJEUkXGuvufA9QEbMJOw= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:cc:subject:references :in-reply-to:content-type; s=default; bh=QWJGxEdnleyl4z7nFgVRl70 eJ3M=; b=ZW7jT4DnSxznxArJ6KYXKRf6SiqE1Y7CMv9F8OAwpX96cPxc5kGHH2H NyujDV6Zbwd4ASg0dSZFQ/Gqa+FcIT635J1Tn1Knvpro6haz4bgFEwhfV455x0M4 nDgfJweIiK1bSg3cP5J/sRG79woUjOJsPFlg0WU0lwEO+eU27QRs= Received: (qmail 16501 invoked by alias); 23 Jun 2014 16:56:21 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 16491 invoked by uid 89); 23 Jun 2014 16:56:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00, SPF_HELO_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mailout4.w1.samsung.com Received: from mailout4.w1.samsung.com (HELO mailout4.w1.samsung.com) (210.118.77.14) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (DES-CBC3-SHA encrypted) ESMTPS; Mon, 23 Jun 2014 16:55:52 +0000 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout4.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N7M00MPLSCTBB90@mailout4.w1.samsung.com> for gcc-patches@gcc.gnu.org; Mon, 23 Jun 2014 17:55:41 +0100 (BST) Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 3D.E6.27902.31C58A35; Mon, 23 Jun 2014 17:55:48 +0100 (BST) Received: from [106.109.128.204] by eusync2.samsung.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0N7M00KGZSCZC020@eusync2.samsung.com>; Mon, 23 Jun 2014 17:55:47 +0100 (BST) Message-id: <53A85C12.10804@partner.samsung.com> Date: Mon, 23 Jun 2014 20:55:46 +0400 From: Maxim Ostapenko User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-version: 1.0 To: Jakub Jelinek Cc: GCC Patches , Yuri Gribov , Slava Garbuzov Subject: Re: [PATCH] Fix for invalid sanitization of trailing byte in __builtin_strlen References: <53A411A8.3000907@partner.samsung.com> <20140620105759.GY31640@tucnak.redhat.com> In-reply-to: <20140620105759.GY31640@tucnak.redhat.com> Content-type: multipart/mixed; boundary=------------050106020801040008090800 X-IsSubscribed: yes Hi, when I applied this patch (r211846), I made a little mistake in output test patterns. This patch fixes this. Tested on x86_64-unknown-linux-gnu. Ok to commit? -Maxim gcc/testsuite/ChangeLog: 2014-06-23 Max Ostapenko * c-c++-common/asan/strlen-overflow-1.c: Change match patterns. diff --git a/gcc/testsuite/c-c++-common/asan/strlen-overflow-1.c b/gcc/testsuite/c-c++-common/asan/strlen-overflow-1.c index bf6bf66..f58f554 100644 --- a/gcc/testsuite/c-c++-common/asan/strlen-overflow-1.c +++ b/gcc/testsuite/c-c++-common/asan/strlen-overflow-1.c @@ -26,4 +26,5 @@ int main () { } /* { dg-output "READ of size 1 at 0x\[0-9a-f\]+ thread T0.*(\n|\r\n|\r)" } */ -/* { dg-output " #0 0x\[0-9a-f\]+ (in _*main (\[^\n\r]*strlen-overflow-1.c:24|\[^\n\r]*:0)|\[(\]).*(\n|\r\n|\r)" } */ +/* { dg-output " #0 0x\[0-9a-f\]+ (in _*main (\[^\n\r]*strlen-overflow-1.c:25|\[^\n\r]*:0)|\[(\]).*(\n|\r\n|\r)" } */ +/* { dg-output "\[^\n\r]*0x\[0-9a-f\]+ is located 1 bytes inside of global variable" } */