Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 743328 - app-arch/unzip-6.0_p25-r1 : fails to unzip
Summary: app-arch/unzip-6.0_p25-r1 : fails to unzip
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Volkmar W. Pogatzki
URL: https://github.com/gdraheim/zziplib/i...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-18 12:29 UTC by Volkmar W. Pogatzki
Modified: 2021-01-06 15:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,71.59 KB, text/plain)
2020-09-18 12:29 UTC, Volkmar W. Pogatzki
Details
build log (build.log,71.20 KB, text/x-log)
2021-01-06 15:39 UTC, Volkmar W. Pogatzki
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Volkmar W. Pogatzki 2020-09-18 12:29:00 UTC
Created attachment 661146 [details]
build.log

During my works on the test suite of dev-libs/zziplib (https://github.com/gentoo/gentoo/pull/17573) I came across these errors:

ERROR: test_59750_infozipdir_CVE_2017_5975
unzip -o 00151-zziplib-heapoverflow-__zzip_get64' returned non-zero exit status 12.

ERROR: test_59800_infozipdir_CVE_2017_5980
unzip -o 00154-zziplib-nullptr-zzip_mem_entry_new' returned non-zero exit status 12.

ERROR: test_65430
unzip -o c006-unknown-add-main' returned non-zero exit status 12.

ERROR: test_65440
unzip -o c008-main-unknown-de' returned non-zero exit status 12.

ERROR: test_65470
unzip -o 003-unknow-def-zip' returned non-zero exit status 12.

ERROR: test_65480
unzip -o 002-mem-leaks-zip' returned non-zero exit status 12.

Complete log is attached
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2020-09-22 10:50:45 UTC
1. zziplib uses unzip for tests
2. zziplib sees tests unexpectedly failing while using unzip
3. This is an unzip problem how?
Comment 2 Volkmar W. Pogatzki 2020-09-23 11:42:26 UTC
So maybe not an issue
Comment 3 Volkmar W. Pogatzki 2021-01-06 15:39:03 UTC
Created attachment 681550 [details]
build log

These errors are caused by /usr/bin/unzip.  Is unzip correct and test cases are bad?

FAILED: test/CMakeFiles/tests 
cd /var/tmp/portage/dev-libs/zziplib-0.13.72/work/zziplib-0.13.72_build/test && /var/tmp/portage/dev-libs/zziplib-0.13.72/temp/python3.9/bin/python /var/tmp/portage/dev-libs/zziplib-0.13.72/work/zziplib-0.13.72/test/zziptests.py --exeext= --topsrcdir=/var/tmp/portage/dev-libs/zziplib-0.13.72/work/zziplib-0.13.72 -v --
downloads=ON -Z /usr/bin/zip -U /usr/bin/unzip
...................................................................................................WARNING:test:*12: cd tmp.test_59750 && /usr/bin/unzip -o 00151-zziplib-heapoverflow-__zzip_get64
WARNING:test:OUT: Archive:  00151-zziplib-heapoverflow-__zzip_get64
WARNING:test:ERR: error [00151-zziplib-heapoverflow-__zzip_get64]:  missing 10 bytes in zipfile
WARNING:test:ERR:   (attempting to process anyway)
WARNING:test:ERR: error [00151-zziplib-heapoverflow-__zzip_get64]:  reported length of central directory is
WARNING:test:ERR:   10 bytes too long (Atari STZip zipfile?  J.H.Holm ZIPSPLIT 1.1
WARNING:test:ERR:   zipfile?).  Compensating...
WARNING:test:ERR: error: invalid zip file with overlapped components (possible zip bomb)
E.............................WARNING:test:*12: cd tmp.test_59800 && /usr/bin/unzip -o 00154-zziplib-nullptr-zzip_mem_entry_new
WARNING:test:OUT: Archive:  00154-zziplib-nullptr-zzip_mem_entry_new
WARNING:test:ERR: error [00154-zziplib-nullptr-zzip_mem_entry_new]:  missing 6 bytes in zipfile
WARNING:test:ERR:   (attempting to process anyway)
WARNING:test:ERR: error [00154-zziplib-nullptr-zzip_mem_entry_new]:  reported length of central directory is
WARNING:test:ERR:   6 bytes too long (Atari STZip zipfile?  J.H.Holm ZIPSPLIT 1.1
WARNING:test:ERR:   zipfile?).  Compensating...
WARNING:test:ERR: error: invalid zip file with overlapped components (possible zip bomb)
E.......................................................WARNING:test:*12: cd tmp.test_65430 && /usr/bin/unzip -o c006-unknown-add-main
WARNING:test:OUT: Archive:  c006-unknown-add-main
WARNING:test:ERR: caution:  zipfile comment truncated
WARNING:test:ERR: warning [c006-unknown-add-main]:  zipfile claims to be last disk of a multi-part archive;
WARNING:test:ERR:   attempting to process anyway, assuming all parts have been concatenated
WARNING:test:ERR:   together in order.  Expect "errors" and warnings...true multi-part support
WARNING:test:ERR:   doesn't exist yet (coming soon).
WARNING:test:ERR: error [c006-unknown-add-main]:  missing 18 bytes in zipfile
WARNING:test:ERR:   (attempting to process anyway)
WARNING:test:ERR: error: invalid zip file with overlapped components (possible zip bomb)
EINFO:test:OUT  12336 zipped    61535% 0

INFO:test:ERR 
.WARNING:test:*12: cd tmp.test_65440 && /usr/bin/unzip -o c008-main-unknown-de
WARNING:test:OUT: Archive:  c008-main-unknown-de
WARNING:test:ERR: caution:  zipfile comment truncated
WARNING:test:ERR: warning [c008-main-unknown-de]:  zipfile claims to be last disk of a multi-part archive;
WARNING:test:ERR:   attempting to process anyway, assuming all parts have been concatenated
WARNING:test:ERR:   together in order.  Expect "errors" and warnings...true multi-part support
WARNING:test:ERR:   doesn't exist yet (coming soon).
WARNING:test:ERR: error [c008-main-unknown-de]:  missing 18 bytes in zipfile
WARNING:test:ERR:   (attempting to process anyway)
WARNING:test:ERR: error: invalid zip file with overlapped components (possible zip bomb)
EINFO:test:OUT  12336 defl:N    61535% 000000000
 12336 defl:N    61535% 00000000000000000000
245772K defl:N    -221% 0000000000
 2060K zipped    -38224% 00000000
 12336 stored    61535% 000000000000
 12336 stored    61535% 0000000000000000
 12336 defl:N    61535% 00000p000000000

INFO:test:ERR 
.ssssss.INFO:test:OUT 
INFO:test:ERR did not open tmp.test_65461/c005-bus-zzip_parse_root_directory: tmp.test_65461/c005-bus-zzip_parse_root_directory: Invalid or incomplete multibyte or wide character

.WARNING:test:*12: cd tmp.test_65470 && /usr/bin/unzip -o 003-unknow-def-zip
WARNING:test:OUT: Archive:  003-unknow-def-zip
WARNING:test:ERR: caution:  zipfile comment truncated
WARNING:test:ERR: warning [003-unknow-def-zip]:  zipfile claims to be last disk of a multi-part archive;
WARNING:test:ERR:   attempting to process anyway, assuming all parts have been concatenated
WARNING:test:ERR:   together in order.  Expect "errors" and warnings...true multi-part support
WARNING:test:ERR:   doesn't exist yet (coming soon).
WARNING:test:ERR: error [003-unknow-def-zip]:  missing 5123 bytes in zipfile
WARNING:test:ERR:   (attempting to process anyway)
WARNING:test:ERR: error: invalid zip file with overlapped components (possible zip bomb)
E.....WARNING:test:*12: cd tmp.test_65480 && /usr/bin/unzip -o 002-mem-leaks-zip
WARNING:test:OUT: Archive:  002-mem-leaks-zip
WARNING:test:ERR: caution:  zipfile comment truncated
WARNING:test:ERR: warning [002-mem-leaks-zip]:  zipfile claims to be last disk of a multi-part archive;
WARNING:test:ERR:   attempting to process anyway, assuming all parts have been concatenated
WARNING:test:ERR:   together in order.  Expect "errors" and warnings...true multi-part support
WARNING:test:ERR:   doesn't exist yet (coming soon).
WARNING:test:ERR: error [002-mem-leaks-zip]:  missing 21 bytes in zipfile
WARNING:test:ERR:   (attempting to process anyway)
WARNING:test:ERR: error [002-mem-leaks-zip]:  reported length of central directory is
WARNING:test:ERR:   21 bytes too long (Atari STZip zipfile?  J.H.Holm ZIPSPLIT 1.1
WARNING:test:ERR:   zipfile?).  Compensating...
WARNING:test:ERR: error: invalid zip file with overlapped components (possible zip bomb)
E..ERROR:test:FIXME: unzip-mem test_65485 is not solved
s.xxxx.WARNING:test:*12: cd tmp.test_65670 && /usr/bin/unzip -o zip_poc.zip
WARNING:test:OUT: Archive:  zip_poc.zip
WARNING:test:ERR: error [zip_poc.zip]:  missing 6 bytes in zipfile
WARNING:test:ERR:   (attempting to process anyway)
WARNING:test:ERR: error [zip_poc.zip]:  reported length of central directory is
WARNING:test:ERR:   6 bytes too long (Atari STZip zipfile?  J.H.Holm ZIPSPLIT 1.1
WARNING:test:ERR:   zipfile?).  Compensating...
WARNING:test:ERR: error: invalid zip file with overlapped components (possible zip bomb