Summary: | app-arch/zip-3.0: 'zipnote -w' segfaults on certain archives | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Rafał Mużyło <galtgendo> |
Component: | Current packages | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | nikoli |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
zipnote input with corected names
a more complete backtrace a few fixes from zip3.1c + my hack |
Description
Rafał Mużyło
2010-05-30 02:35:35 UTC
Created attachment 233473 [details]
zipnote input with corected names
oops, I forgot USE="bzip2 crypt unicode" CFLAGS="-O2 -march=athlon -mtune=athlon -pipe" Created attachment 233987 [details]
a more complete backtrace
Problem seems fixed in 3.1b beta. Created attachment 315109 [details, diff]
a few fixes from zip3.1c + my hack
It's been awhile and upstream haven't done much during the time.
I've decided to try to extract the minimal changes from betwen zip30 and zip31c.
- second block in zipnote.c is the fix for the freze
- blocks in fileio.c and zipfile.c are fixes for two other bugs, as described in zip31c tarball
- first block in zipnote.c is my hack; it's needed for a less incorrect zipnote:
while using zipnote supporting unicode in an utf8 locale
- without my hack, if the new name is outside ascii, it's getting interpreted
as if it was in an 8bit locale (even though the archive unpacks without
warnings, the names are wrong)
- with my hack, while there's a warning of local/global mismatch, files are
extracted with expected names
Unfortunately, the coding style of this package was a bit too convoluted from me to come up with a proper fix (at least in this attempt).
+*zip-3.0-r3 (28 Jan 2015) + + 28 Jan 2015; Tony Vroon <chainsaw@gentoo.org> +zip-3.0-r3.ebuild, + +files/zip-3.0-format-security.patch, +files/zip-3.0-zipnote-freeze.patch: + Upstream 3.1C fileio & zipnote changes backported by Rafał "galtgendo" + Mużyło, closes bug #322047. Incorrect printf usage changed to fputs by Ted + Tanberry, closes bug #512414. |