From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E7D283857C46; Mon, 24 Oct 2022 20:49:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E7D283857C46 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666644559; bh=YMwq2qBKmJQTP/M6vytLD3R23dGRGbUpgm58uS6oR4U=; h=From:To:Subject:Date:In-Reply-To:References:From; b=X+5FGOK1NXWYfUroHLPJzjkQ1tbvePbqUYTiCMIdr4oOeQLuJAdD1pBwVBuPfob8I cO3kodnPnb9FsOo3uVM8oOln3Mh3di4fMHiLaHvxSxG9b2xzLBD/89icfJyPNFY7wK uc2CN431pNAPhj2GRzLCXoASGoDVBYIcnLyUMgUo= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug analyzer/107366] ICE with -fanalyzer with -fdiagnostics-format=sarif-file or sarif-stderr Date: Mon, 24 Oct 2022 20:49:19 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: analyzer X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107366 --- Comment #5 from CVS Commits --- The master branch has been updated by David Malcolm : https://gcc.gnu.org/g:2e8a0553918adc919f98ac5c0224fc6ce1fef68d commit r13-3469-g2e8a0553918adc919f98ac5c0224fc6ce1fef68d Author: Martin Liska Date: Mon Oct 24 16:40:00 2022 -0400 diagnostics: fix ICE in sarif output with NULL filename [PR107366] gcc/ChangeLog: PR analyzer/107366 * diagnostic-format-sarif.cc (sarif_builder::maybe_make_physical_location_object): Gracefully reject locations with NULL filename. gcc/testsuite/ChangeLog: PR analyzer/107366 * gcc.dg/analyzer/sarif-pr107366.c: New test. Signed-off-by: David Malcolm =