Skip to content

Commit

Permalink
Should ignore float variable
Browse files Browse the repository at this point in the history
  • Loading branch information
disinvite committed Jan 24, 2025
1 parent e6786e9 commit 7e8a6a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_analysis_float_const.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ def test_basic_float_detection(binfile: PEImage):
assert (0x100DB8F0, 8, 3.141592653589793) in floats
assert (0x100DBD50, 8, 3.14159265359) in floats

# Ignore float variable from .data
assert (0x100F7500, 4, 0.1) not in floats


def test_floats_appear_once(binfile: PEImage):
"""Multiple instructions may point at the same constant.
Expand Down

0 comments on commit 7e8a6a9

Please sign in to comment.