Skip to content

Commit

Permalink
handle empty buffer, i.e., empty .data section
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-tz committed Aug 30, 2023
1 parent 7ec1005 commit c76ee48
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions floss/language/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,9 @@ def get_struct_string_candidates_with_pointer_size(pe: pefile.PE, buf: bytes, ps
else:
raise ValueError("unsupported pointer size")

if not buf:
return

limit = get_max_section_size(pe)
low, high = get_image_range(pe)

Expand Down

0 comments on commit c76ee48

Please sign in to comment.