https://gcc.gnu.org/g:ddabda614fed35583640a437bb641c42466476bc

commit r16-3938-gddabda614fed35583640a437bb641c42466476bc
Author: David Malcolm <[email protected]>
Date:   Wed Sep 17 16:39:31 2025 -0400

    sarif-replay: fix uninitialized m_debug_physical_locations
    
    In r16-2766-g7969e4859ed007 I added a new field to replay_opts
    but forgot to initialize it in set_defaults.
    
    Fixed thusly.
    
    Spotted thanks to valgrind.
    
    gcc/ChangeLog:
            * sarif-replay.cc (set_defaults): Initialize
            m_debug_physical_locations.
    
    Signed-off-by: David Malcolm <[email protected]>

Diff:
---
 gcc/sarif-replay.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/sarif-replay.cc b/gcc/sarif-replay.cc
index c740c29b2a32..aa7f2debe9cc 100644
--- a/gcc/sarif-replay.cc
+++ b/gcc/sarif-replay.cc
@@ -37,6 +37,7 @@ set_defaults (replay_options &replay_opts)
   replay_opts.m_echo_file = false;
   replay_opts.m_json_comments = false;
   replay_opts.m_verbose = false;
+  replay_opts.m_debug_physical_locations = false;
   replay_opts.m_diagnostics_colorize = DIAGNOSTIC_COLORIZE_IF_TTY;
 }

Reply via email to