FS#47436 - [libarchive] Extracts corrupted files for some ZIP
Attached to Project:
Community Packages
Opened by Chih-Hsuan Yen (yan12125) - Friday, 18 December 2015, 12:24 GMT
Last edited by Doug Newgard (Scimmia) - Friday, 18 December 2015, 16:17 GMT
Opened by Chih-Hsuan Yen (yan12125) - Friday, 18 December 2015, 12:24 GMT
Last edited by Doug Newgard (Scimmia) - Friday, 18 December 2015, 16:17 GMT
|
Details
Description:
For https://addons.mozilla.org/firefox/downloads/latest/9609/addon-9609-latest.xpi (SHA256: b434553905ca9462300668ccd58fe768c28414b234d14dd23ff3b9678601a1bc), bsdtar extracts corrupted files. Some files have correct length but all zeroes. On the other hand, unzip extracts correct files. Additional info: $ yaourt -Q libarchive unzip core/libarchive 3.1.2-8 extra/unzip 6.0-11 This bug affects firefox-extension-ghostery in AUR and maybe more packages with *.zip source files. Steps to reproduce: $ wget https://addons.mozilla.org/firefox/downloads/latest/9609/addon-9609-latest.xpi (log omitted) $ mkdir ghostery1 && cd ghostery1 $ bsdtar -xf ../addon-9609-latest.xpi $ cd .. $ mkdir ghostery2 && cd ghostery2 $ unzip ../addon-9609-latest.xpi (log omitted) $ cd .. $ diff -ur ghostery1 ghostery2 Binary files ghostery1/META-INF/manifest.mf and ghostery2/META-INF/manifest.mf differ Binary files ghostery1/META-INF/mozilla.rsa and ghostery2/META-INF/mozilla.rsa differ Binary files ghostery1/META-INF/mozilla.sf and ghostery2/META-INF/mozilla.sf differ $ xxd ghostery1/META-INF/mozilla.sf | head -n 5 00000000: 0000 0000 0000 0000 0000 0000 0000 0000 ................ 00000010: 0000 0000 0000 0000 0000 0000 0000 0000 ................ 00000020: 0000 0000 0000 0000 0000 0000 0000 0000 ................ 00000030: 0000 0000 0000 0000 0000 0000 0000 0000 ................ 00000040: 0000 0000 0000 0000 0000 0000 0000 0000 ................ $ xxd ghostery1/META-INF/mozilla.rsa | head -n 5 00000000: 0000 0000 0000 0000 0000 0000 0000 0000 ................ 00000010: 0000 0000 0000 0000 0000 0000 0000 0000 ................ 00000020: 0000 0000 0000 0000 0000 0000 0000 0000 ................ 00000030: 0000 0000 0000 0000 0000 0000 0000 0000 ................ 00000040: 0000 0000 0000 0000 0000 0000 0000 0000 ................ $ xxd ghostery1/META-INF/manifest.mf | head -n 5 00000000: 0000 0000 0000 0000 0000 0000 0000 0000 ................ 00000010: 0000 0000 0000 0000 0000 0000 0000 0000 ................ 00000020: 0000 0000 0000 0000 0000 0000 0000 0000 ................ 00000030: 0000 0000 0000 0000 0000 0000 0000 0000 ................ 00000040: 0000 0000 0000 0000 0000 0000 0000 0000 ................ |
This task depends upon
Closed by Doug Newgard (Scimmia)
Friday, 18 December 2015, 16:17 GMT
Reason for closing: Duplicate
Additional comments about closing: FS#41071
Friday, 18 December 2015, 16:17 GMT
Reason for closing: Duplicate
Additional comments about closing: