ruby-changes:56481
From: Yusuke <ko1@a...>
Date: Sun, 14 Jul 2019 20:24:38 +0900 (JST)
Subject: [ruby-changes:56481] Yusuke Endoh: 41e09ca4be (master): addr2line.c (binary_filename): extend the buffer for NUL terminator
https://git.ruby-lang.org/ruby.git/commit/?id=41e09ca4be From 41e09ca4becff3d573a5c8049624c664311492ae Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Sun, 14 Jul 2019 20:23:29 +0900 Subject: addr2line.c (binary_filename): extend the buffer for NUL terminator diff --git a/addr2line.c b/addr2line.c index 45cae6a..f6befce 100644 --- a/addr2line.c +++ b/addr2line.c @@ -187,7 +187,7 @@ struct debug_section_definition { https://github.com/ruby/ruby/blob/trunk/addr2line.c#L187 }; /* 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) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/