<feed xmlns='http://www.w3.org/2005/Atom'>
<title>opkg-lede/libbb/unarchive.c, branch master</title>
<subtitle>LEDE fork of Opkg</subtitle>
<id>https://git.openwrt.org/project/opkg-lede/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/project/opkg-lede/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/opkg-lede/'/>
<updated>2017-03-15T00:42:49Z</updated>
<entry>
<title>libbb: remove unused variables</title>
<updated>2017-03-15T00:42:49Z</updated>
<author>
<name>Jo-Philipp Wich</name>
</author>
<published>2017-03-14T23:52:47Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/opkg-lede/commit/?id=6fbf8a9c3613f7ea21095f1d80389e511f7ddd87'/>
<id>urn:sha1:6fbf8a9c3613f7ea21095f1d80389e511f7ddd87</id>
<content type='text'>
Remove unused variables from deb_extract() to avoid compiler warnings.

Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
</entry>
<entry>
<title>unarchive: fix possible segmentation fault in deb_extract()</title>
<updated>2017-02-28T23:52:41Z</updated>
<author>
<name>Jo-Philipp Wich</name>
</author>
<published>2017-02-28T23:46:39Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/opkg-lede/commit/?id=19070b6c1a9718bf7ceaa61c48f328cabf1d5ca7'/>
<id>urn:sha1:19070b6c1a9718bf7ceaa61c48f328cabf1d5ca7</id>
<content type='text'>
When a not existing or unreachable file path is passed to deb_extract(),
the wfopen() call fails, causing a jump to the cleanup: label which leads
to a call to gzip_close() on the tar_outer structure.

The tar_outer structure however contains uninitialized memory at this point,
causing gzip_close() to operate on garbage data. Depending on the nature of
the unitialized memory, this might lead to all sorts of issues, e.g. freeing
of not allocated memory or invoking fclose() on garbage pointers.

Solve this problem by initializing the tar_outer and tar_inner structures
right at the declaration.

Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
</entry>
<entry>
<title>treewrite: use Lindent to reformat to kernel coding style</title>
<updated>2017-02-10T10:20:23Z</updated>
<author>
<name>Jo-Philipp Wich</name>
</author>
<published>2017-02-10T10:20:23Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/opkg-lede/commit/?id=4ea955bc7e5575bc1d8b34c364591c47653f2cfd'/>
<id>urn:sha1:4ea955bc7e5575bc1d8b34c364591c47653f2cfd</id>
<content type='text'>
Use the kernels "Lindent" script to reformat files using kernel coding style.
This should make subsequent refactoring much easier.

Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
</entry>
<entry>
<title>libbb: use external gzip command as I/O layer</title>
<updated>2017-02-10T09:19:14Z</updated>
<author>
<name>Jo-Philipp Wich</name>
</author>
<published>2017-02-10T09:19:14Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/opkg-lede/commit/?id=dd4c78aa88efd3b9cf516030937c684814df7962'/>
<id>urn:sha1:dd4c78aa88efd3b9cf516030937c684814df7962</id>
<content type='text'>
Remove the builtin inflate code and rely on the external gzip command instead
to inflate data streams.

This change is needed to properly support vfork(). We cannot use the builtin
code because it uses a single global state which will get clobbered when
recursively inflating nested archives.

Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
</entry>
<entry>
<title>Don't truncate long symlink paths.</title>
<updated>2010-12-23T01:38:25Z</updated>
<author>
<name>graham.gower@gmail.com</name>
</author>
<published>2010-12-23T01:38:25Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/opkg-lede/commit/?id=35a2b8424a53f7f2e8ac3070169a8bb3878f8107'/>
<id>urn:sha1:35a2b8424a53f7f2e8ac3070169a8bb3878f8107</id>
<content type='text'>
Patch from Richard Purdie. Tracked as Issue #72. Original patch header follows.

If a tarball contains a long symlink (over 100 chars) in a longpath (over 100
chars) then the resulting link or path can be truncated to 100 chars.

This is due to a bug where if both 'L' and 'K' entries are found in the tarball,
only the first one takes affect due to get_header_tar recursively calling itself.
To fix this, process longname and linkname at the end of the function rather
than the start after any subcalls have taken place.

Richard Purdie
22/12/2010

git-svn-id: http://opkg.googlecode.com/svn/trunk@594 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
</content>
</entry>
<entry>
<title>Fix if statement with empty body due to stray semicolon.</title>
<updated>2010-12-13T04:39:11Z</updated>
<author>
<name>graham.gower@gmail.com</name>
</author>
<published>2010-12-13T04:39:11Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/opkg-lede/commit/?id=25c4c0cc6f7e142f87be6e0945541a448602f197'/>
<id>urn:sha1:25c4c0cc6f7e142f87be6e0945541a448602f197</id>
<content type='text'>
Found with Clang.

git-svn-id: http://opkg.googlecode.com/svn/trunk@588 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
</content>
</entry>
<entry>
<title>Accept a leading "./" for the control file name, but don't mandate it.</title>
<updated>2010-08-24T04:09:34Z</updated>
<author>
<name>graham.gower</name>
</author>
<published>2010-08-24T04:09:34Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/opkg-lede/commit/?id=f637389e79f9fb04b73d4fe254fea63e9b077a94'/>
<id>urn:sha1:f637389e79f9fb04b73d4fe254fea63e9b077a94</id>
<content type='text'>
git-svn-id: http://opkg.googlecode.com/svn/trunk@558 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
</content>
</entry>
<entry>
<title>Remove trailing whitespace. Sorry if this breaks your patches.</title>
<updated>2010-08-18T03:39:02Z</updated>
<author>
<name>graham.gower</name>
</author>
<published>2010-08-18T03:39:02Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/opkg-lede/commit/?id=0a4946b3e913a2affe5fd342aa88e2533d06356e'/>
<id>urn:sha1:0a4946b3e913a2affe5fd342aa88e2533d06356e</id>
<content type='text'>
git-svn-id: http://opkg.googlecode.com/svn/trunk@552 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
</content>
</entry>
<entry>
<title>Fix creation of symlinks to files with long names (greater than 100 chars).</title>
<updated>2010-08-04T00:45:57Z</updated>
<author>
<name>graham.gower</name>
</author>
<published>2010-08-04T00:45:57Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/opkg-lede/commit/?id=97a819864c3f143c4da81e17f32330ba2f1a170c'/>
<id>urn:sha1:97a819864c3f143c4da81e17f32330ba2f1a170c</id>
<content type='text'>
From "paradox.kahn", see Issue #55.

git-svn-id: http://opkg.googlecode.com/svn/trunk@544 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
</content>
</entry>
<entry>
<title>Fix double free(). Found by Kosmaty (Issue 33). Thanks.</title>
<updated>2009-12-19T00:05:18Z</updated>
<author>
<name>graham.gower</name>
</author>
<published>2009-12-19T00:05:18Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/opkg-lede/commit/?id=46b5b8779dbb8e5e03622fc34dbc943a4400c436'/>
<id>urn:sha1:46b5b8779dbb8e5e03622fc34dbc943a4400c436</id>
<content type='text'>
git-svn-id: http://opkg.googlecode.com/svn/trunk@503 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
</content>
</entry>
</feed>
