<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mtd-utils.git/ubifs-utils, branch v2.1.2</title>
<subtitle>A mirror of http://git.infradead.org/mtd-utils.git</subtitle>
<id>https://git.infraroot.at/mtd-utils.git/atom?h=v2.1.2</id>
<link rel='self' href='https://git.infraroot.at/mtd-utils.git/atom?h=v2.1.2'/>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/'/>
<updated>2020-07-13T08:03:42+00:00</updated>
<entry>
<title>Add the mkfs.ubifs sign.h header to the list of sources</title>
<updated>2020-07-13T08:03:42+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2020-07-13T08:03:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=de84f0b318f3a1ce53e006e3349ab8f3997a275f'/>
<id>urn:sha1:de84f0b318f3a1ce53e006e3349ab8f3997a275f</id>
<content type='text'>
The sign.h header added by the authentication patch set was omitted
from the automake file and thus not added to the distribution tarball.

The resulting tarballs were unable to be compiled.

Fixes: a739b59 ("mkfs.ubifs: Add authentication support")
Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>mkfs.ubifs: fix broken build if fscrtyp is disabled</title>
<updated>2020-02-09T22:04:41+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2020-02-09T21:46:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=639b871fe3d2cb3e73d21363e8c13ede2bbd9f99'/>
<id>urn:sha1:639b871fe3d2cb3e73d21363e8c13ede2bbd9f99</id>
<content type='text'>
First, there is no option named of X509_OPTION. It was presumably
changed during development to AUTH_CERT_OPTION. This commit fixes
the name in the !WITH_CRYPTO branch.

Similarly, '}' got moved into the WITH_CRYPTO branch, but not into
else branch, resulting in tons of errors if fscrypt is disabled.
This commit pulls it back out of both branches.

Fixes: a739b59e ("mkfs.ubifs: Add authentication support")
Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>mkfs.ubifs: propperly cleanup in ALL interpret_table_entry error paths</title>
<updated>2019-11-10T14:30:03+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2019-11-10T13:12:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=84502bf120e45a8ce573bdf6e5c07eb9f59a9d6e'/>
<id>urn:sha1:84502bf120e45a8ce573bdf6e5c07eb9f59a9d6e</id>
<content type='text'>
Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>mkfs.ubifs: don't leak temporary buffers</title>
<updated>2019-11-10T14:29:59+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2019-11-10T12:37:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=64255d88391b8a531f0d358e22bdf12c0c79cd5d'/>
<id>urn:sha1:64255d88391b8a531f0d358e22bdf12c0c79cd5d</id>
<content type='text'>
Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>mkfs.ubifs: don't leak hastable iterators</title>
<updated>2019-11-10T14:29:53+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2019-11-10T13:02:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=19333aa3648663893d190d9ce8c7e45724c1a3bd'/>
<id>urn:sha1:19333aa3648663893d190d9ce8c7e45724c1a3bd</id>
<content type='text'>
Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>mkfs.ubifs: free derived fscrypt context in add_directory error paths</title>
<updated>2019-11-10T14:29:53+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2019-11-10T12:46:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=64e9543eea4089aaf2bcae7f2b3b62b97bbe202f'/>
<id>urn:sha1:64e9543eea4089aaf2bcae7f2b3b62b97bbe202f</id>
<content type='text'>
Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>mkfs.ubifs: don't leak copied command line arguments</title>
<updated>2019-11-10T14:29:53+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2019-11-10T12:41:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=1538c553302dae1df9088ec302a5b2fb5a15174f'/>
<id>urn:sha1:1538c553302dae1df9088ec302a5b2fb5a15174f</id>
<content type='text'>
For some command line flags, the argument string is copied. Simply
writing over the buffer leads to a resource leak if the same flag
is specified on the command line more than once.

This patch adds a free() call to the old buffer before overwriting
it with the new copy.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>mkfs.ubifs: close file descriptor in add_file error path</title>
<updated>2019-11-10T14:29:53+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2019-11-10T12:38:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=7386aabf3628379df10612bed7ecb7ab4163cdcf'/>
<id>urn:sha1:7386aabf3628379df10612bed7ecb7ab4163cdcf</id>
<content type='text'>
Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>mkfs.ubifs: abort add_directory if readdir fails</title>
<updated>2019-11-10T13:44:24+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2019-11-10T13:40:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=aa2c234ecb512bc4fc52fa1601377c31dfb58552'/>
<id>urn:sha1:aa2c234ecb512bc4fc52fa1601377c31dfb58552</id>
<content type='text'>
The existing code sets 'err' to -1 and breaks the readdir loop, but
the error state is never read. This patch modifies the readdir loop
to actualy jump to the error handling branch if readdir fails.

Signed-off-by: David Oberhollenzer &lt;david.oberhollenzer@sigma-star.at&gt;
</content>
</entry>
<entry>
<title>mkfs.ubifs: fscrypt: bail from encrypt_block if gen_essiv_salt fails</title>
<updated>2019-11-10T13:22:53+00:00</updated>
<author>
<name>David Oberhollenzer</name>
<email>david.oberhollenzer@sigma-star.at</email>
</author>
<published>2019-11-10T13:17:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.infraroot.at/mtd-utils.git/commit/?id=46c16855b1bed2704549d834acd2e9812ff3bf1e'/>
<id>urn:sha1:46c16855b1bed2704549d834acd2e9812ff3bf1e</id>
<content type='text'>
What originally cought my attention was that gen_essiv_salt has a
size_t return type and error paths that return -1 on failure.
Further investigation revealed that the error value is never checked
for. The encrypt_block function doesn't use the return value in any
way and simply continues onward.

Furthermore, the gen_essiv_salt function has an error case that emits
an error message but returns success state.

This patch modifes gen_essiv_salt to return an error status in all
error branches, changes the return type to ssize_t and adds a check
to encrypt_block if gen_essiv_salt fails.

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