I'm not an expert, but I tried running the current GitHub source through a debugger.
The problematic line seems to be in read_fs.c:
https://github.com/plougher/squashfs-tools/blob/7d7f2da27d5c39de89c5fae61eb611666f297c03/squashfs-tools/read_fs.c#L678
memcpy(dire->name, directory_table + bytes, dire->size + 1);
dire->size is 65535.
I'm attaching the 'crash.sfs' file I created (with mksquashfs -p '/ f 444 root root echo').
(If the crash.sfs file itself is invalid, I guess that's a separate issue.)
I'm not an expert, but I tried running the current GitHub source through a debugger.
The problematic line seems to be in read_fs.c:
https:/ /github. com/plougher/ squashfs- tools/blob/ 7d7f2da27d5c39d e89c5fae61eb611 666f297c03/ squashfs- tools/read_ fs.c#L678
memcpy(dire->name, directory_table + bytes,
dire->size + 1);
dire->size is 65535.
I'm attaching the 'crash.sfs' file I created (with mksquashfs -p '/ f 444 root root echo').
(If the crash.sfs file itself is invalid, I guess that's a separate issue.)