AgentD / squashfs-tools-ng

A new set of tools and libraries for working with SquashFS images
Other
196 stars 30 forks source link

loading filesystem tree: location out of bounds. #22

Closed josch closed 4 years ago

josch commented 4 years ago

Steps to reproduce:

$ mkdir foo
$ touch foo/bar
$ tar -C ./foo -c . > out.tar
$ tar tf out.tar
./
./bar
$ tar2sqfs rootfs.sqfs < out.tar
[...]
$ sqfs2tar rootfs.sqfs > out.tar
rootfs.sqfs: loading filesystem tree: location out of bounds.
AgentD commented 4 years ago

The problem is two fold:

My proposed solution for this is as follows:

Which is implemented by commits 018e0e0a8e3c36a6bedf60eedeb8262311d90869 and 063f57dec14986d1895d83d9113fd1dec7f135f4.