We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02abccb commit 3f71a11Copy full SHA for 3f71a11
bugs/issue-431-false-COFF64-detection/raw.bin
21 Bytes
bugs/issue-431-false-COFF64-detection/test.py
@@ -0,0 +1,18 @@
1
+""" Input file raw.bin created as follows:
2
+$ offset=18
3
+$ dd if=/dev/zero bs=$offset count=1 >raw.bin
4
+$ printf "\x31\xc0\xc3" >>raw.bin # xor eax, eax; ret
5
+"""
6
+from regression_tests import *
7
+
8
+class Test(Test):
9
+ settings = TestSettings(
10
+ input='raw.bin',
11
+ mode='raw',
12
+ arch='x86',
13
+ args='--endian little --raw-section-vma 0x0 --raw-entry-point 0x12'
14
+ )
15
16
+ def test_check_output(self):
17
+ assert self.out_c.has_just_funcs('entry_point')
18
+ assert self.out_c.has_comment_matching('// Address range: 0x12 - 0x15')
0 commit comments