mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-12-23 03:53:43 +01:00
tests: Fix heap overflow in coredump-unwind test
We've tried to run slightly modified test-coredump-unwind.c built with tcmalloc, and it promptly crashed. Attached patch fixes the heap buffer overflow bug which caused it.
This commit is contained in:
parent
23c3f24ea6
commit
cc0c170f53
1 changed files with 1 additions and 1 deletions
|
@ -137,7 +137,7 @@ static void verror_msg_helper(const char *s,
|
|||
if (flags & LOGMODE_STDIO)
|
||||
{
|
||||
fflush(stdout);
|
||||
used += write(STDERR_FILENO, msg, used + msgeol_len);
|
||||
write(STDERR_FILENO, msg, used + msgeol_len);
|
||||
}
|
||||
msg[used] = '\0'; /* remove msg_eol (usually "\n") */
|
||||
if (flags & LOGMODE_SYSLOG)
|
||||
|
|
Loading…
Reference in a new issue