erocarrera / pefile

pefile is a Python module to read and work with PE (Portable Executable) files
MIT License
1.83k stars 516 forks source link

fix PE.get_data #379

Closed mak closed 10 months ago

mak commented 11 months ago

Fix a situation when length passed to .get_data is 0 - expected results will be an empty string but currently if rva is outside any section returned data will be unbounded

erocarrera commented 10 months ago

Thanks!