<feed xmlns='http://www.w3.org/2005/Atom'>
<title>squashfs-tools-ng.git, branch v1.0.6</title>
<subtitle>A new set of tools and libraries for working with SquashFS images</subtitle>
<id>https://git.infraroot.at/squashfs-tools-ng.git/atom?h=v1.0.6</id>
<link rel='self' href='https://git.infraroot.at/squashfs-tools-ng.git/atom?h=v1.0.6'/>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/'/>
<updated>2021-08-15T20:40:00+00:00</updated>
<entry>
<title>Release version 1.0.6</title>
<updated>2021-08-15T20:40:00+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2021-08-15T20:40:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=41c5060e8b980a53edf03b31d1864e17f5309ddb'/>
<id>urn:sha1:41c5060e8b980a53edf03b31d1864e17f5309ddb</id>
<content type='text'>
Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Update CHANGELOG.md</title>
<updated>2021-08-15T20:34:31+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2021-08-15T20:34:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=f204788f0848a14702dbd9c6dcd51bfa5fa924a9'/>
<id>urn:sha1:f204788f0848a14702dbd9c6dcd51bfa5fa924a9</id>
<content type='text'>
Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Bump coverity scan version</title>
<updated>2021-08-15T20:17:23+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2021-02-10T11:05:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=31f14a97cb223f5dd6c8f00be8efcd35fd59d08a'/>
<id>urn:sha1:31f14a97cb223f5dd6c8f00be8efcd35fd59d08a</id>
<content type='text'>
Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Travis-CI: dump test-suite.log if make check fails</title>
<updated>2021-08-15T20:17:23+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2021-03-06T21:57:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=f126c478a7e9a1eb2bc6ceaf9a23c76b24f65c93'/>
<id>urn:sha1:f126c478a7e9a1eb2bc6ceaf9a23c76b24f65c93</id>
<content type='text'>
Gets a little difficult to debug otherwise.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Backport documentation changes</title>
<updated>2021-08-15T20:17:23+00:00</updated>
<author>
<name>Zachary Dremann</name>
<email>dremann@gmail.com</email>
</author>
<published>2021-08-01T15:50:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=1c1c5f3ccd8ec235b15d7a903e30c2a8ec03a588'/>
<id>urn:sha1:1c1c5f3ccd8ec235b15d7a903e30c2a8ec03a588</id>
<content type='text'>
Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Fix symlink path traversal in rdsqaushfs</title>
<updated>2021-08-14T13:20:05+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2021-08-12T13:01:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=f949898c71f98917c3b3ede1b6397c4a4007e7c3'/>
<id>urn:sha1:f949898c71f98917c3b3ede1b6397c4a4007e7c3</id>
<content type='text'>
If rdsquashfs unpacks a directory tree that contains a symlink,
followed by something else with the exact same name, it will
follow the symlink and can be tricked into writing to an
arbitrary filesystem location controlled by the SquashFS image.

Because there might actually be a reasonable use case, where an
image is unpacked into an directory existing directory tree, with
symlinks that should be followed, this is solved as follows:

 - Before unpacking, recursively sort the directory by filename.
 - FAIL if (after sorting) two consequtive entries at the same
   hierarchy level have the same name.

This solution is more generic and prevents the unpacker from accessing
the same thing twice in generall, thus also excluding the symlink issue.

Hardlinks are already unfolded into duplicate tree nodes by the tree
reader (with loop detection) so that should not prompt further issues.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Add a test case for the path traversal bug</title>
<updated>2021-08-14T13:19:17+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2021-08-14T10:37:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=2f494d26a65cde5da1ef797070bc439f2431265c'/>
<id>urn:sha1:2f494d26a65cde5da1ef797070bc439f2431265c</id>
<content type='text'>
Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Fix libsquashfs directory writer size accounting</title>
<updated>2021-07-21T08:01:39+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2021-07-21T07:41:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=c2aac9df8b5b29780bfc4a32fd38facf6a9b84a6'/>
<id>urn:sha1:c2aac9df8b5b29780bfc4a32fd38facf6a9b84a6</id>
<content type='text'>
The squashfs readdir() implementation in the Linux kernel returns
non-existing "." and ".." entries for offsets 0 and 1, and after
that reads from disk. For convenience, it was decided to store an
off-by-3 value on disk instead of doing complex primary school math
to adjust for this. This didn't show up until now, because the kernel
implementation trusts the value from the directory header more than
the actual size in the inode and happily reads 3 more than the inode
would allow it to. This only showed up with 7-zip which subtracts 3
from the size and expects the result to be exact and bails if the
directory headers suggest otherwise.

And yes, I did consider making a "Holy Hand Granade of Antioch"
reference, but consciously decided not to.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Add a separate architecture/structure writeup</title>
<updated>2021-07-21T08:00:03+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2021-07-15T11:58:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=ca476afbebda985e777ebf5009c980aee923b4da'/>
<id>urn:sha1:ca476afbebda985e777ebf5009c980aee923b4da</id>
<content type='text'>
Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Fix printf format specifiers used for generating tarballs</title>
<updated>2021-07-09T18:00:36+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2021-07-09T16:06:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=270fac93b9bdc2da16126817d48ce109ef9073bb'/>
<id>urn:sha1:270fac93b9bdc2da16126817d48ce109ef9073bb</id>
<content type='text'>
When processing files &gt; 4G, using "%o" truncates the result and the
tarball is not readable. This should have been discovered when
auto-patching the printf format specifiers, but a cast was added
instead and the issue was overlooked.

This commit replaces the down-cast and printf format specifiers.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
</feed>
