Closed Squiblydoo closed 4 weeks ago
This archive contains its files without any compression, I didn't have a good test case for this method until now, so the code was just buggy. A few offsets were off by 4 where a size prefix was incorrectly read as part of the data. Commit 5ccd3e34217e59862868302d951a27a8aec57ff1 should fix all of this.
This is fixed in release 0.6.40. I will close this out. Cheers!
Awesome work as always. Thank you. :)
Description
The xtnsis fails to properly parse some NSIS files such as this one: https://mega.nz/file/QrsG0STY#4uAml4wfCe8-aAUHIXGuHDMK9Po7JmZgrTyQpYwCbLw
When attempting to parse, the user is returned an error stating "failure in xtnsis: exception of type EOF; Unexpected end of buffer."
To Reproduce
Attempting to use the xtnsis to list or extract from this NSIS installer will produce the error.
or
Environment
Additional Context
I use an adapted copy of xtnsis in my debloat tool. When debugging debloat, the error occurs in the "read_exactly" method an returns the following, which I THINK suggests the error is occurring while parsing the NSIS Script, so perhaps there is another missing instruction or something?: