onekey-sec/unblob

Integration tests for squashfs_v4_be are not all big endian

wcampbell0x2a opened this issue · 1 comments

Tests in tests/integration/filesystem/squashfs/squashfs_v4_be)/__input__/ are not all big-endian. squashfs_v4.4kpad.bin looks to be little endian.

$ hexdump -C ~/Downloads/squashfs_v4.1kpad.bin | head -n1
00000000  73 71 73 68 00 00 00 05  62 1f 5e 09 00 02 00 00  |sqsh....b.^.....|

$ hexdump -C ~/Downloads/squashfs_v4.4kpad.bin | head -n1
00000000  68 73 71 73 05 00 00 00  ec b5 03 62 00 00 02 00  |hsqs.......b....|

$hexdump -C ~/Downloads/squashfs_v4.bin | head -n1
00000000  73 71 73 68 00 00 00 05  62 1f 5e 09 00 02 00 00  |sqsh....b.^.....|

$hexdump -C ~/Downloads/squashfs_v4.nopad.bin | head -n1
00000000  73 71 73 68 00 00 00 05  62 1f 5e 09 00 02 00 00  |sqsh....b.^.....|

For instance, the le tests:

$ hexdump -C ~/Downloads/squashfs_v4.1kpad.bin | head -n1
00000000  68 73 71 73 05 00 00 00  ec b5 03 62 00 00 02 00  |hsqs.......b....|

$ hexdump -C ~/Downloads/squashfs_v4.4kpad.bin | head -n1
00000000  68 73 71 73 05 00 00 00  ec b5 03 62 00 00 02 00  |hsqs.......b....|

$ hexdump -C ~/Downloads/squashfs_v4.bin | head -n1
00000000  68 73 71 73 03 00 00 00  00 c1 9c 61 00 00 02 00  |hsqs.......a....|

$ hexdump -C ~/Downloads/squashfs_v4.nopad.bin | head -n1
00000000  68 73 71 73 05 00 00 00  06 b6 03 62 00 00 02 00  |hsqs.......b....|

Thank you for reporting this, we'll take care of it :)