summaryrefslogtreecommitdiff
path: root/addr2line.c
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2019-07-14 20:23:29 +0900
committerYusuke Endoh <mame@ruby-lang.org>2019-07-14 20:23:29 +0900
commit41e09ca4becff3d573a5c8049624c664311492ae (patch)
tree9f2975986a1aa9fd34d9eff044b8a9022a4e9f5c /addr2line.c
parenta7dd6763bd1dac7952ace46be58083dbea332a0a (diff)
downloadbundler-41e09ca4becff3d573a5c8049624c664311492ae.tar.gz
addr2line.c (binary_filename): extend the buffer for NUL terminator
Diffstat (limited to 'addr2line.c')
-rw-r--r--addr2line.c2
1 files changed, 1 insertions, 1 deletions
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)