Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(28)

Issue 632003: Stricter validation checks for symbol parser functions. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 2 months ago by Ivan Penkov
Modified:
11 years, 2 months ago
CC:
google-breakpad-dev_googlegroups.com
Base URL:
http://google-breakpad.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Adding stricter validation checks to various symbol parser functions.

More specifically, the validation of the following record types is improved:
 - FILE records
 - FUNC records
 - Line record
 - PUBLIC records

Adding unittests.
Committed: https://code.google.com/p/google-breakpad/source/detail?r=1217

Patch Set 1 #

Patch Set 2 : #

Total comments: 8

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats Patch
M src/google_breakpad/processor/basic_source_line_resolver.h View 1 2 3 1 chunk +58 lines, -0 lines 0 comments Download
M src/processor/basic_source_line_resolver.cc View 1 2 3 3 chunks +188 lines, -77 lines 0 comments Download
M src/processor/basic_source_line_resolver_unittest.cc View 1 2 3 2 chunks +263 lines, -0 lines 0 comments Download

Messages

Total messages: 5
Ivan Penkov
11 years, 2 months ago #1
Mark Mentovai
https://breakpad.appspot.com/632003/diff/2001/src/google_breakpad/processor/basic_source_line_resolver.h File src/google_breakpad/processor/basic_source_line_resolver.h (right): https://breakpad.appspot.com/632003/diff/2001/src/google_breakpad/processor/basic_source_line_resolver.h#newcode88 src/google_breakpad/processor/basic_source_line_resolver.h:88: static bool ParseFile(char *file_line, int *index, char **filename); The ...
11 years, 2 months ago #2
Ivan Penkov
Done. https://breakpad.appspot.com/632003/diff/2001/src/google_breakpad/processor/basic_source_line_resolver.h File src/google_breakpad/processor/basic_source_line_resolver.h (right): https://breakpad.appspot.com/632003/diff/2001/src/google_breakpad/processor/basic_source_line_resolver.h#newcode88 src/google_breakpad/processor/basic_source_line_resolver.h:88: static bool ParseFile(char *file_line, int *index, char **filename); ...
11 years, 2 months ago #3
Mark Mentovai
LGTM https://breakpad.appspot.com/632003/diff/7001/src/processor/basic_source_line_resolver.cc File src/processor/basic_source_line_resolver.cc (right): https://breakpad.appspot.com/632003/diff/7001/src/processor/basic_source_line_resolver.cc#newcode467 src/processor/basic_source_line_resolver.cc:467: file_line += 5; // skip prefix You could ...
11 years, 2 months ago #4
Ivan Penkov
11 years, 2 months ago #5
Done.

https://breakpad.appspot.com/632003/diff/7001/src/processor/basic_source_line...
File src/processor/basic_source_line_resolver.cc (right):

https://breakpad.appspot.com/632003/diff/7001/src/processor/basic_source_line...
src/processor/basic_source_line_resolver.cc:467: file_line += 5;  // skip prefix
On 2013/09/24 21:08:39, Mark Mentovai wrote:
> You could add an assertion to check that the prefix really is “FILE ”. Same
for
> FUNC and PUBLIC below.

Done.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld 1004:630ec63f810e-tainted