diff options
author | robot-contrib <[email protected]> | 2025-03-19 22:16:45 +0300 |
---|---|---|
committer | robot-contrib <[email protected]> | 2025-03-19 22:39:23 +0300 |
commit | 842d4aa77a13f834213769e8a84762ba2cd48678 (patch) | |
tree | 761515108702b0cd008e72b74e8b8dabe975964b /contrib/restricted/abseil-cpp/absl/debugging/internal/demangle.cc | |
parent | ac4c6f13e09afd3b8118cb869891d54a23aabaeb (diff) |
Update contrib/restricted/abseil-cpp to 20250127.1
commit_hash:ba806fade44cb61f6f4e597654b5ffe8b1e5b999
Diffstat (limited to 'contrib/restricted/abseil-cpp/absl/debugging/internal/demangle.cc')
-rw-r--r-- | contrib/restricted/abseil-cpp/absl/debugging/internal/demangle.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/restricted/abseil-cpp/absl/debugging/internal/demangle.cc b/contrib/restricted/abseil-cpp/absl/debugging/internal/demangle.cc index caac76367f0..f7de117b201 100644 --- a/contrib/restricted/abseil-cpp/absl/debugging/internal/demangle.cc +++ b/contrib/restricted/abseil-cpp/absl/debugging/internal/demangle.cc @@ -2816,7 +2816,8 @@ static bool ParseLocalNameSuffix(State *state) { // On late parse failure, roll back not only the input but also the output, // whose trailing NUL was overwritten. state->parse_state = copy; - if (state->parse_state.append) { + if (state->parse_state.append && + state->parse_state.out_cur_idx < state->out_end_idx) { state->out[state->parse_state.out_cur_idx] = '\0'; } return false; @@ -2829,7 +2830,8 @@ static bool ParseLocalNameSuffix(State *state) { return true; } state->parse_state = copy; - if (state->parse_state.append) { + if (state->parse_state.append && + state->parse_state.out_cur_idx < state->out_end_idx) { state->out[state->parse_state.out_cur_idx] = '\0'; } |