-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
61cc543
commit 84401b2
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+42.2 KB
...info/features/elf-loader/051c02260e4f10ca956e3bcc8c5ab9295e12660c39fed4fe442e5a22fa09622d
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from regression_tests import * | ||
|
||
|
||
class Test(Test): | ||
settings = TestSettings( | ||
tool='fileinfo', | ||
input=[ | ||
'051c02260e4f10ca956e3bcc8c5ab9295e12660c39fed4fe442e5a22fa09622d', | ||
], | ||
args='--json --verbose' | ||
) | ||
|
||
def test_corrupted_elf(self): | ||
assert self.fileinfo.succeeded | ||
assert 'loaderError' in self.fileinfo.output | ||
assert self.fileinfo.output['loaderError']['code'] == 1 | ||
assert self.fileinfo.output['loaderError']['code_text'] == "LOAD Segment data is not within file bounds" | ||
assert self.fileinfo.output['loaderError']['description'] == "LOAD Segment data is not within file bounds" | ||
assert self.fileinfo.output['loaderError']['loadable_anyway'] == "false" |