Package: ziptorrent
Version: 0.11.2-1.2
Severity: important

Dear Maintainer,

Using ziptorrent to normalize the output of git-archive results in a crash.
This may have security implications about ziptorrent's handling of data, but
seems difficult to exploit.

Steps to reproduce:

$ mkdir test
$ cd test
$ git init
Initialized empty Git repository in /home/lucca/test/.git/
$ date > foo
$ git add foo
$ git commit -m 'adding foo'
[master (root-commit) a453c76] adding foo
 1 file changed, 1 insertion(+)
 create mode 100644 foo
$ git archive --output ../test.zip --prefix=test/ HEAD
$ ziptorrent ../test.zip
*** Error in `ziptorrent': double free or corruption (!prev):
0x0000000000a35840 ***
Aborted

Apparently git-archive adds some additional comment metadata to the zip that
ziptorrent does not like.  Re-compressing the zip manually before ziptorrenting
works.

Using ziptorrent as a general-purpose zip normalizer is useful for non-torrent
situations like rsync of release archives of git-controlled datasets.

--
Emily Backes
lu...@accela.net



-- System Information:
Debian Release: 8.0
  APT prefers testing-updates
  APT policy: (500, 'testing-updates'), (500, 'stable-updates'), (500, 
'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages ziptorrent depends on:
ii  libc6    2.19-18
ii  libzip2  0.11.2-1.2
ii  zlib1g   1:1.2.8.dfsg-2+b1

ziptorrent recommends no packages.

ziptorrent suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to