Skip to content

Commit

Permalink
Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Arker123 committed Jun 24, 2024
1 parent 272770d commit 770955c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions floss/language/rust/decode_utf8.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,14 @@ def extract_utf8_strings_from_buffer(buf, min_length=MIN_STR_LEN) -> List[List[A
return strings


def extract_utf8_strings(pe: pefile.PE, min_length=MIN_STR_LEN) -> List[Optional[List[Any]]]:
def extract_utf8_strings(pe: pefile.PE, min_length=MIN_STR_LEN) -> List[List[Any]]:
"""
Extracts UTF-8 strings from the .rdata section of a PE file.
"""
try:
rdata_section = get_rdata_section(pe)
except ValueError as e:
print("cannot extract rust strings: %s", e)
logger.error("cannot extract rust strings: %s", e)
return []

buf = pe.get_memory_mapped_image()[
Expand Down

0 comments on commit 770955c

Please sign in to comment.