From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 695DE3858423 for ; Thu, 26 Jan 2023 14:20:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 695DE3858423 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1674742848; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=qrySDPK5fgNKgLioK1orzfcZOT5I/Hwb1+rDPLkcDFE=; b=Hcfx6sFlveA+FK34s0mTFlj4KKmm1RFeX1WYvUgz9yKu2pERovVnKoAEh2wuMLCdeuW/8G njDckM4K3nwBy0fj7NesltgB4DjjiQEuPTUG5QHlrQ0BPfLbIZVjywCO5gN12HA1F4tTQO IjHabFR7sSnSJssO+anwmiEJ63WgiV8= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-628--_gPVDnBOt2YAIdcyPrNtg-1; Thu, 26 Jan 2023 09:20:46 -0500 X-MC-Unique: -_gPVDnBOt2YAIdcyPrNtg-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 9893F802D1A for ; Thu, 26 Jan 2023 14:20:46 +0000 (UTC) Received: from t14s.localdomain.com (unknown [10.2.16.174]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6B8E12166B26; Thu, 26 Jan 2023 14:20:46 +0000 (UTC) From: David Malcolm To: gcc-patches@gcc.gnu.org Cc: David Malcolm Subject: [committed] analyzer: fix SARD-tc841-basic-00182-min.c test case [PR108507] Date: Thu, 26 Jan 2023 09:20:45 -0500 Message-Id: <20230126142045.500121-1-dmalcolm@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-Spam-Status: No, score=-11.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Lightly tested on Compiler Explorer; fixes issues on aarch64-unknown-linux-gnu. Successfully regrtested on x86_64-pc-linux-gnu. Pushed to trunk as r13-5389-gf1eab269288ffa. gcc/testsuite/ChangeLog: PR analyzer/108507 * gcc.dg/analyzer/SARD-tc841-basic-00182-min.c: Add -Wno-stringop-overflow. Signed-off-by: David Malcolm --- gcc/testsuite/gcc.dg/analyzer/SARD-tc841-basic-00182-min.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/testsuite/gcc.dg/analyzer/SARD-tc841-basic-00182-min.c b/gcc/testsuite/gcc.dg/analyzer/SARD-tc841-basic-00182-min.c index 577dce13f00..ed9ad317d19 100644 --- a/gcc/testsuite/gcc.dg/analyzer/SARD-tc841-basic-00182-min.c +++ b/gcc/testsuite/gcc.dg/analyzer/SARD-tc841-basic-00182-min.c @@ -4,6 +4,9 @@ Black, P. , Koo, H. and Irish, T. (2013), A Basic CWE-121 Buffer Overflow Effectiveness Test Suite, Proc. 6th Latin-American Symposium on Dependable Computing, Rio de Janeiro, -1, [online], https://tsapps.nist.gov/publication/get_pdf.cfm?pub_id=913117 (Accessed January 17, 2023) */ +/* The purpose of this testcase is to see if -fanalyzer can detect the bug. */ +/* { dg-additional-options "-Wno-stringop-overflow" } */ + /* Taxonomy Classification: 0000300602130000031110 */ /* -- 2.26.3