ruby-changes:33330
From: naruse <ko1@a...>
Date: Wed, 26 Mar 2014 01:58:50 +0900 (JST)
Subject: [ruby-changes:33330] naruse:r45409 (trunk): * addr2line.c (fill_lines): skip if path is NULL.
naruse 2014-03-26 01:58:42 +0900 (Wed, 26 Mar 2014) New Revision: 45409 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45409 Log: * addr2line.c (fill_lines): skip if path is NULL. Modified files: trunk/ChangeLog trunk/addr2line.c Index: ChangeLog =================================================================== --- ChangeLog (revision 45408) +++ ChangeLog (revision 45409) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Wed Mar 26 01:34:50 2014 NARUSE, Yui <naruse@r...> + + * addr2line.c (fill_lines): skip if path is NULL. + Tue Mar 25 23:57:17 2014 Nobuyoshi Nakada <nobu@r...> * parse.y (parser_yylex): only a newline after label should be Index: addr2line.c =================================================================== --- addr2line.c (revision 45408) +++ addr2line.c (revision 45409) @@ -581,7 +581,7 @@ fill_lines(int num_traces, void **traces https://github.com/ruby/ruby/blob/trunk/addr2line.c#L581 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; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/