Skip to content
This repository was archived by the owner on Jul 8, 2025. It is now read-only.

Commit 55ff490

Browse files
author
William Ballenthin
committed
add test for github issue #22
1 parent 937053e commit 55ff490

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

tests/data/highaddr/highaddr.idb

515 KB
Binary file not shown.

tests/test_issue22.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import os.path
2+
3+
import idb
4+
5+
6+
def test_issue22():
7+
'''
8+
demonstrate that functions found at addresses with the high bit set are no problem.
9+
see github issue #22 for the backstory.
10+
'''
11+
cd = os.path.dirname(__file__)
12+
idbpath = os.path.join(cd, 'data', 'highaddr', 'highaddr.idb')
13+
14+
with idb.from_file(idbpath) as db:
15+
api = idb.IDAPython(db)
16+
assert len(api.idautils.Functions()) == 1
17+
assert api.idautils.Functions()[0] == 0xF7FFFFFF

0 commit comments

Comments
 (0)