onekey-sec / unblob

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

fix(handler): introduce upper size limit for s_log_block_size #803

Closed nyuware closed 4 months ago

nyuware commented 4 months ago

The maximum block size limit on a 64bit system is 65536. When creating a fake filesystem with mkfs.ext4 and setting the block size with -b 65536, the maximum value that s_log_block_size will reach is 6.

Fixes : https://github.com/onekey-sec/unblob/issues/792

qkaiser commented 4 months ago

Makes perfect sense since 1024 << 6 = 65536