Bug 129 - unzip with "central directory" does not work on big endian
Summary: unzip with "central directory" does not work on big endian
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: 1.13.x
Hardware: Other Linux
: P5 major
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-25 18:01 UTC by Stephane Fillod
Modified: 2009-02-26 11:25 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:


Attachments
unzip endianess patch (432 bytes, patch)
2009-02-25 18:01 UTC, Stephane Fillod
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stephane Fillod 2009-02-25 18:01:31 UTC
Created attachment 73 [details]
unzip endianess patch

unzipping file with "central directory" does not work on big endian arch.
Obvious when reading the code, because formatted.cds_offset is an uint32_t.
Bug conditional on CONFIG_DESKTOP.

Patch attached.
Comment 1 Denys Vlasenko 2009-02-26 11:25:54 UTC
Fixed in svn. Thanks!