From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by sourceware.org (Postfix) with ESMTPS id 2EFD43858000 for ; Sun, 20 Aug 2023 18:06:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2EFD43858000 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-3fe8d816a40so4328795e9.1 for ; Sun, 20 Aug 2023 11:06:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692554783; x=1693159583; h=to:cc:date:message-id:subject:mime-version:from:from:to:cc:subject :date:message-id:reply-to; bh=2Oq7hnsq4IbirXL99asXC2Lv+MSSkucKXoyWFaqBM2c=; b=laYcBlfZQ89gyNknn8YeMh1ngj6flTIixNr7GnhsuDSBthRGfCG/SyD3MFZDfvbnKA CHpgSX20F2DQzExqI0CIVqIJldpEfW8BhSNdzyUCrDLN3wLbMIFjhBLL5K9GzKNbVOFs egSw7WIssqRWjrRo8k1QXaxehPNmQQ/NK/ShT8wEx39IboeCEBusVczehs1DIYoE1UUX Zz0Nkedfyig4/uQz8jiYpbHBn4I8CqPHviCDWct0vCyv+DE1pJz7Azk2F6mslD/MgnEu mN3G4wmbcn+ydXOjb+qdET4jJQHKpJ1tUbWKNUVMIziLRpT3rt0BMwhkQxwMjdCxhRMG 3bhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692554783; x=1693159583; h=to:cc:date:message-id:subject:mime-version:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=2Oq7hnsq4IbirXL99asXC2Lv+MSSkucKXoyWFaqBM2c=; b=liARVzkifjZ8fMOrcAj8dcshTbRQ0MI5o8QTyPjw6xnPB9v0As5Kj4DZZ/1oH8VLY9 WTSW0S6jFPOc2Kgn7nOwFxT9BN/iXt30g08FKuvy4bmDCeAJKc3X8G+UBniakzlON0fp faO5Nnk/PSDHIRWq1j3hEfVS3vY1u17zItYRS5cjWXVqJEm881sv1hdNAqgNyW1F2y8r fnZ4/rYYABmhdHcUzZAz3RsIVB4D4OpaNHUwJjbu8yVMsfEdyei2gygwTYoZUAYM+inc CnaNHHHPBm/jM8dRg5xE7M4w5AMVutozZviIIPAo3HUjkQjI6vhAG/g+C1AXXXC8ovOX Ua5Q== X-Gm-Message-State: AOJu0YxlFOdnQzP/0eS+nwB/Qa6hbgH/Mr0HbxRDYZ2YpQvpBSjEOCl8 NCk1vKOIqhBFwBp235BHG5RD4tLvyyQ= X-Google-Smtp-Source: AGHT+IFIeO1Ox8d+B0eESLdstpOZk+WDsSGF8z8NLT32FsbXdMeej52vmh4+sVscLL+iwIsoagWzyw== X-Received: by 2002:a05:600c:1c1a:b0:3fe:d637:7b0a with SMTP id j26-20020a05600c1c1a00b003fed6377b0amr3877165wms.2.1692554782617; Sun, 20 Aug 2023 11:06:22 -0700 (PDT) Received: from smtpclient.apple ([178.132.107.5]) by smtp.gmail.com with ESMTPSA id y20-20020a1c4b14000000b003feef5b0bb7sm2070207wma.40.2023.08.20.11.06.21 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 20 Aug 2023 11:06:21 -0700 (PDT) From: FX Coudert Content-Type: multipart/mixed; boundary="Apple-Mail=_ABC5C789-BA09-4F86-95AF-0100073D2E7F" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\)) Subject: [PATCH, committed] Testsuite, darwin: Fix analyzer testcases Message-Id: Date: Sun, 20 Aug 2023 20:05:56 +0200 Cc: Iain Sandoe To: GCC Patches X-Mailer: Apple Mail (2.3731.600.7) X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_BARRACUDACENTRAL,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --Apple-Mail=_ABC5C789-BA09-4F86-95AF-0100073D2E7F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Committed as obvious, fixing three more darwin-specific failures in = analyzer testsuite. This fixes: FAIL: gcc.dg/plugin/taint-CVE-2011-0521-5.c = -fplugin=3D./analyzer_kernel_plugin.so (test for warnings, line 39) FAIL: gcc.dg/plugin/taint-CVE-2011-0521-6.c = -fplugin=3D./analyzer_kernel_plugin.so (test for warnings, line 36) XPASS: gcc.dg/plugin/taint-CVE-2011-0521-5-fixed.c = -fplugin=3D./analyzer_kernel_plugin.so (test for bogus messages, line = 39) Committed to trunk, FX --Apple-Mail=_ABC5C789-BA09-4F86-95AF-0100073D2E7F Content-Disposition: attachment; filename=0001-Testsuite-darwin-Fix-analyzer-testcases.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="0001-Testsuite-darwin-Fix-analyzer-testcases.patch" Content-Transfer-Encoding: quoted-printable =46rom=207694d0352a92d9f91c7afa69df0a0e56f95a771b=20Mon=20Sep=2017=20= 00:00:00=202001=0AFrom:=20Francois-Xavier=20Coudert=20= =0ADate:=20Sun,=2020=20Aug=202023=2020:02:43=20= +0200=0ASubject:=20[PATCH]=20Testsuite,=20darwin:=20Fix=20analyzer=20= testcases=0A=0AOn=20darwin,=20system=20headers=20are=20fortified=20by=20= default=20and=20that=20defeats=20the=0Aanalyzer's=20warnings=20on=20= memcpy()=20calls.=20=20Turn=20this=20off=20for=20testing.=0A=0A= gcc/testsuite/ChangeLog:=0A=0A=09*=20= gcc.dg/plugin/taint-CVE-2011-0521-5-fixed.c:=20Use=0A=09= _FORTIFY_SOURCE=3D0=20on=20darwin.=0A=09*=20= gcc.dg/plugin/taint-CVE-2011-0521-5.c:=20Likewise.=0A=09*=20= gcc.dg/plugin/taint-CVE-2011-0521-6.c:=20Likewise.=0A---=0A=20= gcc/testsuite/gcc.dg/plugin/taint-CVE-2011-0521-5-fixed.c=20|=203=20+++=0A= =20gcc/testsuite/gcc.dg/plugin/taint-CVE-2011-0521-5.c=20=20=20=20=20=20=20= |=203=20+++=0A=20gcc/testsuite/gcc.dg/plugin/taint-CVE-2011-0521-6.c=20=20= =20=20=20=20=20|=203=20+++=0A=203=20files=20changed,=209=20insertions(+)=0A= =0Adiff=20--git=20= a/gcc/testsuite/gcc.dg/plugin/taint-CVE-2011-0521-5-fixed.c=20= b/gcc/testsuite/gcc.dg/plugin/taint-CVE-2011-0521-5-fixed.c=0Aindex=20= 8cb067c6542..2e74770a7a3=20100644=0A---=20= a/gcc/testsuite/gcc.dg/plugin/taint-CVE-2011-0521-5-fixed.c=0A+++=20= b/gcc/testsuite/gcc.dg/plugin/taint-CVE-2011-0521-5-fixed.c=0A@@=20-4,6=20= +4,9=20@@=0A=20/*=20{=20dg-options=20"-fanalyzer=20= -fanalyzer-checker=3Dtaint=20--param=3Danalyzer-max-svalue-depth=3D25"=20= }=20*/=0A=20/*=20{=20dg-require-effective-target=20analyzer=20}=20*/=0A=20= =0A+/*=20On=20darwin,=20system=20headers=20are=20fortified,=20which=20= defeats=20the=20analysis.=20=20Turn=20it=20off.=20=20*/=0A+/*=20{=20= dg-additional-options=20"-D_FORTIFY_SOURCE=3D0"=20{=20target=20= *-*-darwin*=20}=20}=20*/=0A+=0A=20/*=20See=20notes=20in=20this=20header.=20= =20*/=0A=20#include=20"taint-CVE-2011-0521.h"=0A=20=0Adiff=20--git=20= a/gcc/testsuite/gcc.dg/plugin/taint-CVE-2011-0521-5.c=20= b/gcc/testsuite/gcc.dg/plugin/taint-CVE-2011-0521-5.c=0Aindex=20= 4ce047902d3..021d458b66e=20100644=0A---=20= a/gcc/testsuite/gcc.dg/plugin/taint-CVE-2011-0521-5.c=0A+++=20= b/gcc/testsuite/gcc.dg/plugin/taint-CVE-2011-0521-5.c=0A@@=20-4,6=20+4,9=20= @@=0A=20/*=20{=20dg-options=20"-fanalyzer=20-fanalyzer-checker=3Dtaint=20= --param=3Danalyzer-max-svalue-depth=3D25"=20}=20*/=0A=20/*=20{=20= dg-require-effective-target=20analyzer=20}=20*/=0A=20=0A+/*=20On=20= darwin,=20system=20headers=20are=20fortified,=20which=20defeats=20the=20= analysis.=20=20Turn=20it=20off.=20=20*/=0A+/*=20{=20= dg-additional-options=20"-D_FORTIFY_SOURCE=3D0"=20{=20target=20= *-*-darwin*=20}=20}=20*/=0A+=0A=20/*=20See=20notes=20in=20this=20header.=20= =20*/=0A=20#include=20"taint-CVE-2011-0521.h"=0A=20=0Adiff=20--git=20= a/gcc/testsuite/gcc.dg/plugin/taint-CVE-2011-0521-6.c=20= b/gcc/testsuite/gcc.dg/plugin/taint-CVE-2011-0521-6.c=0Aindex=20= c54af790a56..f27e9eb5f02=20100644=0A---=20= a/gcc/testsuite/gcc.dg/plugin/taint-CVE-2011-0521-6.c=0A+++=20= b/gcc/testsuite/gcc.dg/plugin/taint-CVE-2011-0521-6.c=0A@@=20-4,6=20+4,9=20= @@=0A=20/*=20{=20dg-options=20"-fanalyzer=20-fanalyzer-checker=3Dtaint=20= --param=3Danalyzer-max-svalue-depth=3D25"=20}=20*/=0A=20/*=20{=20= dg-require-effective-target=20analyzer=20}=20*/=0A=20=0A+/*=20On=20= darwin,=20system=20headers=20are=20fortified,=20which=20defeats=20the=20= analysis.=20=20Turn=20it=20off.=20=20*/=0A+/*=20{=20= dg-additional-options=20"-D_FORTIFY_SOURCE=3D0"=20{=20target=20= *-*-darwin*=20}=20}=20*/=0A+=0A=20/*=20See=20notes=20in=20this=20header.=20= =20*/=0A=20#include=20"taint-CVE-2011-0521.h"=0A=20=0A--=20=0A2.39.2=20= (Apple=20Git-143)=0A=0A= --Apple-Mail=_ABC5C789-BA09-4F86-95AF-0100073D2E7F--