mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2025-12-28 18:25:20 +01:00
Ignore functions that have invalid addresses or sizes, instead of aborting the
symbol file load (#137). r=mmentovai. git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@130 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
6bc866cc82
commit
809f0cb858
4 changed files with 24 additions and 10 deletions
|
|
@ -152,6 +152,10 @@ static bool RunTests() {
|
|||
ASSERT_FALSE(frame_info->allocates_base_pointer);
|
||||
ASSERT_FALSE(frame_info->program_string.empty());
|
||||
|
||||
frame.instruction = 0x2000;
|
||||
frame_info.reset(resolver.FillSourceLineInfo(&frame));
|
||||
ASSERT_FALSE(frame_info.get());
|
||||
|
||||
TestCodeModule module2("module2");
|
||||
|
||||
frame.instruction = 0x2181;
|
||||
|
|
@ -186,8 +190,11 @@ static bool RunTests() {
|
|||
testdata_dir + "/module3_bad.out"));
|
||||
ASSERT_FALSE(resolver.HasModule("module3"));
|
||||
ASSERT_FALSE(resolver.LoadModule("module4",
|
||||
testdata_dir + "/invalid-filename"));
|
||||
testdata_dir + "/module4_bad.out"));
|
||||
ASSERT_FALSE(resolver.HasModule("module4"));
|
||||
ASSERT_FALSE(resolver.LoadModule("module5",
|
||||
testdata_dir + "/invalid-filename"));
|
||||
ASSERT_FALSE(resolver.HasModule("module5"));
|
||||
ASSERT_FALSE(resolver.HasModule("invalid-module"));
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue