<feed xmlns='http://www.w3.org/2005/Atom'>
<title>squashfs-tools-ng.git/lib/sqfs, branch v1.0.2</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.2</id>
<link rel='self' href='https://git.infraroot.at/squashfs-tools-ng.git/atom?h=v1.0.2'/>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/'/>
<updated>2020-08-11T22:25:34+00:00</updated>
<entry>
<title>Fix block processor single block with don't fragment flag bug</title>
<updated>2020-08-11T22:25:34+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2020-08-10T09:08:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=18275733975c23b93419fbce7ca3105e6638786d'/>
<id>urn:sha1:18275733975c23b93419fbce7ca3105e6638786d</id>
<content type='text'>
This commit fixes a bug where the block processor state machine would
not add the "last block" flag if there is only one not entirely filled
block and the "don't fragment" flag is set. If the flag isn't set, the
inode start block position is not updated and points to the beginning
of the image instead.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Cleanup: move zlib/lz4 code from lib/sqfs/comp/ to lib/</title>
<updated>2020-08-04T17:27:42+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2020-07-26T13:05:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=959fde579e07836b73438e86cd58ba04657014f6'/>
<id>urn:sha1:959fde579e07836b73438e86cd58ba04657014f6</id>
<content type='text'>
The source code of a modified liblz4 and zlib are included with the
option to compile them into libsquashfs if they are not available on
the system.

So far, the source code was included directly in the compressor sub
directory within libsqsuashfs. This commit moves the libraries out
into the lib directory.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Fix: xattr reader: read the header after seaking to an OOL value</title>
<updated>2020-07-29T11:31:08+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2020-07-29T11:29:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=06972b6b45ff32090359d3b272f197e4cd9fb1e7'/>
<id>urn:sha1:06972b6b45ff32090359d3b272f197e4cd9fb1e7</id>
<content type='text'>
If an xattr value is stored OOL, the value actually holds an 8 byte
reference to another, previously stored value. This reference points
to the header that we need to read to know the actual size of the
value before reading it, not the value itself, so after reading the
reference and seeking to it, the xattr reader needs to read the actual
header.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Fix block bounds checking in libsquashfs data reader</title>
<updated>2020-06-20T17:18:32+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2020-06-20T16:52:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=94cfa86b56792e8b95e3807c8174e348d70eac59'/>
<id>urn:sha1:94cfa86b56792e8b95e3807c8174e348d70eac59</id>
<content type='text'>
Instead of doing the fragile size comparison in both loops, simply
bail from the function if offset is out of bounds, clamp the size
to the available range of the file and abail if it is zero.

As a result, a lot of checks can be removed and the function will not
return data beyond EOF.

This problem occoured with files that have a short last block instead
of a fragment.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Fix: don't include alloca.h on systems that don't provide this header</title>
<updated>2020-06-13T14:09:40+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2020-06-13T14:09:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=fcbf4c346c8a9b88679983614218e90a44fe8f2a'/>
<id>urn:sha1:fcbf4c346c8a9b88679983614218e90a44fe8f2a</id>
<content type='text'>
This commit fixes a build issue on BSD based systems, where alloca
is defined in stdlib.h and there is no such thing as "alloca.h".

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Bump the so version number for libsquashfs</title>
<updated>2020-06-13T02:08:14+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2020-06-13T01:53:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=1b7368d88262455d3618774aed5df350db337386'/>
<id>urn:sha1:1b7368d88262455d3618774aed5df350db337386</id>
<content type='text'>
Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Add an explicit defition for the libsquashfs so version</title>
<updated>2020-06-12T16:14:45+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2020-06-12T16:14:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=bb4e50f30c46bef8ab49a886c3042644a25322d9'/>
<id>urn:sha1:bb4e50f30c46bef8ab49a886c3042644a25322d9</id>
<content type='text'>
Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Add flags to functions that might logically be expanded in the future</title>
<updated>2020-06-11T13:36:08+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2020-06-10T23:57:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=259a98985b4f93347923d1b2c3aaa535397aaa89'/>
<id>urn:sha1:259a98985b4f93347923d1b2c3aaa535397aaa89</id>
<content type='text'>
Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Cleanup: mark sqfs_xattr_writer_flush writer argument as const</title>
<updated>2020-06-09T04:51:31+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2020-06-09T04:51:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=ec5ba7eb521626a85d2ab22e97eb1298b2ff6f55'/>
<id>urn:sha1:ec5ba7eb521626a85d2ab22e97eb1298b2ff6f55</id>
<content type='text'>
It does not make any changes to the writer itself, so mark it as
const. This also requires some similar changes to the string table.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Cleanup: remove refcount adjusting in sqfs_xattr_writer_end</title>
<updated>2020-06-09T04:36:32+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2020-06-09T04:36:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=322f6069de6c5e460a0c3b253d36b90ac30bef70'/>
<id>urn:sha1:322f6069de6c5e460a0c3b253d36b90ac30bef70</id>
<content type='text'>
After finding a match, reducing the reference count of the matched
elements and increasing them afterwards leaves the reference count
identical, because they refere to the same entries.

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