addr2line.c (binary_filename): extend the buffer for NUL terminator

This commit is contained in:
Yusuke Endoh 2019-07-14 20:23:29 +09:00
parent a7dd6763bd
commit 41e09ca4be

View File

@ -187,7 +187,7 @@ struct debug_section_definition {
};
/* Avoid consuming stack as this module may be used from signal handler */
static char binary_filename[PATH_MAX];
static char binary_filename[PATH_MAX + 1];
static unsigned long
uleb128(char **p)