<feed xmlns='http://www.w3.org/2005/Atom'>
<title>squashfs-tools-ng.git/lib/fstree, branch v0.4.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=v0.4.2</id>
<link rel='self' href='https://git.infraroot.at/squashfs-tools-ng.git/atom?h=v0.4.2'/>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/'/>
<updated>2019-07-17T09:05:42+00:00</updated>
<entry>
<title>fstree: add support for spaces in filenames</title>
<updated>2019-07-17T09:05:42+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2019-07-17T08:53:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=1f980897f6947dd17eaa0190b2c1a23fb700636b'/>
<id>urn:sha1:1f980897f6947dd17eaa0190b2c1a23fb700636b</id>
<content type='text'>
This commit adds a mechanism to fstree_from_file to support filenames
with spaces in them by quoting the entire string. Quote marks can still
be used inside file names by escaping them with a backslash. Back slashes
(if that is your thing) can also be escaped.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>fstree: mknode: initialize fragment data, add extra blocksize slot</title>
<updated>2019-07-12T13:44:14+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2019-07-12T10:08:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=e4dd1ed8c9cea1761092e8206d572f60a9d95a58'/>
<id>urn:sha1:e4dd1ed8c9cea1761092e8206d572f60a9d95a58</id>
<content type='text'>
This commit makes sure that regular file tree nodes have one more slot
than necessary to support files that don't have fragments.

Also, it initializes the fragment data, which should help to deduplicate
some code ahead.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Make coverity happy</title>
<updated>2019-07-10T06:51:32+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2019-07-09T18:00:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=744daf0d3d72e71854f8248dbf2bc0b81fe110ec'/>
<id>urn:sha1:744daf0d3d72e71854f8248dbf2bc0b81fe110ec</id>
<content type='text'>
The string is actually always null-terminated, since the calloc above
adds one more byte than what we tell readlink about.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Fix regression in fstree_from_file device node format</title>
<updated>2019-07-07T16:10:05+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2019-07-07T16:08:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=c16221178ca2266f8130ebe5a7adadc1c928bae0'/>
<id>urn:sha1:c16221178ca2266f8130ebe5a7adadc1c928bae0</id>
<content type='text'>
The format is documented as "&lt;c|b&gt; major minor" but the parser was
accidentally changed to require a colon in between.

Fixes: 9864ea5b2045f4bd72633152d71dd1c7f8b0b7f9

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>cleanup: move tree node from path function to libfstree.a</title>
<updated>2019-07-03T16:50:33+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2019-07-03T16:50:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=da7eb3445cab5936455b8a119cb656113ca3d402'/>
<id>urn:sha1:da7eb3445cab5936455b8a119cb656113ca3d402</id>
<content type='text'>
Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Remove never used overflow error message in fstree_from_file</title>
<updated>2019-07-01T09:46:40+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2019-07-01T08:38:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=569c430c61d7720919836e1fcbea27f7a0673778'/>
<id>urn:sha1:569c430c61d7720919836e1fcbea27f7a0673778</id>
<content type='text'>
Bug found using scan-build.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Fix uninitialize return status in fstree_relabel_selinux</title>
<updated>2019-07-01T09:46:40+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2019-07-01T08:38:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=0e210cc91233378db959f75535b8a8c759eb0a30'/>
<id>urn:sha1:0e210cc91233378db959f75535b8a8c759eb0a30</id>
<content type='text'>
Should the inode table theoretically be empty, the function returns an
undefined value. This commit fixes that case by initializing the return
status to 0, so it returns success status in that case.

Bug found using scan-build.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Fix use of uninitialized xattr structure</title>
<updated>2019-07-01T07:20:10+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2019-07-01T07:20:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=00e4e502a9ff5a60df07e54d344123347da32e80'/>
<id>urn:sha1:00e4e502a9ff5a60df07e54d344123347da32e80</id>
<content type='text'>
The refactor of the xattr table grow code merged all allocation code
paths into realloc(), including the initial allocation. This means that
the xattr structure is used uninitialized. This commit makes sure the
reallocated structure is alwayes cleared.

Bug found using scan-build.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Fix alloca'd memory being freed in fstree_from_dir</title>
<updated>2019-07-01T07:17:54+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2019-07-01T07:17:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=009aeeea2aecbc35399eb74f7f9178e35fdbd754'/>
<id>urn:sha1:009aeeea2aecbc35399eb74f7f9178e35fdbd754</id>
<content type='text'>
Most code path that use 'extra' allocate it using calloc/malloc/strdup
and then converge into a common path that uses free() on extra.

This commit removes a stray one that uses alloca for symlink targets,
so we don't free() a stack buffer further down in the common path.

Bug found using scan-build.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>Split up fstree_add_xattr</title>
<updated>2019-06-23T15:30:18+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2019-06-23T15:30:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/squashfs-tools-ng.git/commit/?id=a94d6f47b0075f88682b97a7528be61980994fcb'/>
<id>urn:sha1:a94d6f47b0075f88682b97a7528be61980994fcb</id>
<content type='text'>
This IMO makes it somewhat easier to read and understand what's going on.

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