onekey-sec / unblob

Extract files from any kind of container formats
https://unblob.org
Other
2.09k stars 80 forks source link

fix(zlib): Limit zlib pattern at the start of the file #829

Closed nyuware closed 2 months ago

nyuware commented 2 months ago

The zlib handler has a weak pattern, it can hog a lot of CPU time, we thus want to improve it's pattern by forcing it to match the start of the file only.

As a result, extraction can be much faster but might results in missed chunks.