[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: lib/48014: libarchive zip reading fails on all xps files created by windows 7
The following reply was made to PR lib/48014; it has been noted by GNATS.
From: Thomas Klausner <wiz%NetBSD.org@localhost>
Subject: Re: lib/48014: libarchive zip reading fails on all xps files created
by windows 7
Date: Thu, 4 Jul 2013 21:45:23 +0200
On Thu, Jul 04, 2013 at 04:45:00PM +0000, martin%NetBSD.org@localhost wrote:
> [/tmp/pdf] martin@whoever-brings-the-night > /usr/pkg/bin/unzip -t gaga.xps
> Archive: gaga.xps
> testing: Metadata/Job_PT.xml OK
> testing: Metadata/MXDC_Empty_PT.xml OK
> testing: Documents/1/Metadata/Page1_Thumbnail.JPG OK
I think the problem is caused by the combination of a stored (vs.
deflated) file with general purpose bit 3 set, i.e. the actual crc,
compressed and uncompressed size following after the data.
I don't understand how the code is supposed to work well enough, but
it might be that if zip->entry_compressed_bytes_read isn't updated
correctly when reading uncompressed data -- at least I saw '0' once.
Main Index |
Thread Index |