Skip to content
Snippets Groups Projects
Commit 2066f297 authored by Serge Petrenko's avatar Serge Petrenko Committed by Kirill Yukhin
Browse files

backtrace: fix out of bounds access on backtrace printing

snrpintf always null-terminates the passed string, and it also returns
the number of bytes that "would have been written if there was enough
space", so not only we don't have to null-terminate the string, but even
more so we shouldn't do it erroneously. The only case when a string
should be null-terminated manually is when the print cycle doesn't run
at all, so move the termination before the cycle.

Closes #4636
parent c6d4f010
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment