1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* addr2line.c (fill_lines): skip if path is NULL.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2014-03-25 16:58:42 +00:00
parent dcd1e5e5c2
commit cd2afc30fd
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Wed Mar 26 01:34:50 2014 NARUSE, Yui <naruse@ruby-lang.org>
* addr2line.c (fill_lines): skip if path is NULL.
Tue Mar 25 23:57:17 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
* parse.y (parser_yylex): only a newline after label should be

View file

@ -581,7 +581,7 @@ fill_lines(int num_traces, void **traces, char **syms, int check_debuglink,
for (i = offset; i < num_traces; i++) {
intptr_t d = (intptr_t)traces[i] - saddr;
const char *path = lines[i].path;
if (path && strcmp(lines[offset].path, path) != 0)
if (!path || strcmp(lines[offset].path, path) != 0)
continue;
if (d <= 0 || d > (intptr_t)sym->st_size)
continue;