erocarrera / pefile

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

fix PE.get_data #379

Closed mak closed 1 year ago

mak commented 1 year 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 1 year ago

Thanks!