https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118675
Bug ID: 118675 Summary: Missing escaping of "{" and "}" within messages in SARIF output Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: dmalcolm at gcc dot gnu.org Target Milestone: --- Seen in analyzer integration tests: /home/david/coding-3/gcc-build/test/control/x86_64-pc-linux-gnu/integration-tests/git-2.39.0/git-2.39.0/reflog.c.sarif:196:36: error: unescaped '{' within message string [SARIF v2.1.0 §3.11.11] 196 | "message": {"text": "expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token"}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/david/coding-3/gcc-build/test/control/x86_64-pc-linux-gnu/integration-tests/linux-5.10.162/linux-5.10.162/sys.c.sarif:721:96: error: unescaped '{' within message string [SARIF v2.1.0 §3.11.11] 721 | "message": {"text": "assigned to ‘u64 *’ {aka ‘long long unsigned int *’} here; ‘sizeof (u64 {aka long long unsigned int})’ is ‘8’"}}, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~