vstinner / hachoir

Hachoir is a Python library to view and edit a binary stream field by field
http://hachoir.readthedocs.io/
GNU General Public License v2.0
604 stars 70 forks source link

Fix LZX decompression #66

Closed nneonneo closed 2 years ago

nneonneo commented 3 years ago

The LZX decoder was incorrectly outputting str instead of a bytes type. Furthermore, it was improperly handling Intel jump fixups causing the output data to be subtly corrupted.

This patch fixes both issues and has been tested by exporting uncompressed_data from https://github.com/pushcx/corefonts/blob/master/arial32.exe and checking the output against cabextract's output.