https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107366
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by David Malcolm <dmalc...@gcc.gnu.org>: https://gcc.gnu.org/g:2e8a0553918adc919f98ac5c0224fc6ce1fef68d commit r13-3469-g2e8a0553918adc919f98ac5c0224fc6ce1fef68d Author: Martin Liska <mli...@suse.cz> 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 <dmalc...@redhat.com>