From 41e09ca4becff3d573a5c8049624c664311492ae Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Sun, 14 Jul 2019 20:23:29 +0900 Subject: [PATCH] addr2line.c (binary_filename): extend the buffer for NUL terminator --- addr2line.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addr2line.c b/addr2line.c index 45cae6a132..f6befce53e 100644 --- a/addr2line.c +++ b/addr2line.c @@ -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)