diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-03-25 16:58:42 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-03-25 16:58:42 +0000 |
commit | cd2afc30fdf10cd5da6b3814a8d07843ecdbc324 (patch) | |
tree | 6fbb3ab5a59323adf02bd5ada39af5ca92af9ab3 | |
parent | dcd1e5e5c298b35899c962985b4d195781c6397d (diff) | |
download | ruby-cd2afc30fdf10cd5da6b3814a8d07843ecdbc324.tar.gz |
* 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
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | addr2line.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -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 diff --git a/addr2line.c b/addr2line.c index 854dbc62ab..0123aff5f9 100644 --- a/addr2line.c +++ b/addr2line.c @@ -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; |