https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123056

            Bug ID: 123056
           Summary: sarif-replay's HTML output mangles event
                    cross-references in execution paths
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Keywords: diagnostic, SARIF
          Severity: normal
          Priority: P3
         Component: sarif-replay
          Assignee: dmalcolm at gcc dot gnu.org
          Reporter: dmalcolm at gcc dot gnu.org
            Blocks: 120792
  Target Milestone: ---

See e.g.:
  https://dmalcolm.fedorapeople.org/gcc/2025-11-03/452-M3DZ.html
where event 18 reads:

<span class="event selected" id="gcc-diag-0-event-17">(18) ‘ext_str’ leaks
here; was allocated at
]8;;sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12(13)]8;;</span>

This:
(a) contains SGR colorization codes (that probably won't show up in this
bugzilla comment)
(b) shows the raw JSON path of the event within the SARIF file.  This should be
converted back to an event id internally, so that this is presented in an
appropriate form for the diagnostic sink


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120792
[Bug 120792] sarif-replay's sarif output doesn't faithfully round-trip all the
data

Reply via email to