carbonblack / binee

Binee: binary emulation environment
GNU General Public License v2.0
502 stars 73 forks source link

[bugfix] reading from EOF ; aspack corner case #25

Closed MennaEssa closed 4 years ago

MennaEssa commented 4 years ago

ASpacked files often append a 0 sized section with name ".apack" at the very end of the file ; there was not checks for EOF which resulted in a crash ; simply checking if read err is EOF and setting the sections structure data to null resolved the issue.