[Bug 192] New: std.zip produces invalid archives on BigEndian targets
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jun 11 12:12:19 PDT 2006
http://d.puremagic.com/bugzilla/show_bug.cgi?id=192
Summary: std.zip produces invalid archives on BigEndian targets
Product: D
Version: 0.160
Platform: All
OS/Version: All
Status: NEW
Keywords: patch
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: bugzilla at digitalmars.com
ReportedBy: dvdfrdmn at users.sf.net
There is a bug in ZipAarchive.putUshort, but it is only triggered on BigEndian
targets. Fix:
}
else
{
- data[0] = cast(ubyte)us;
- data[1] = cast(ubyte)(us >> 8);
+ data[i] = cast(ubyte)us;
+ data[i + 1] = cast(ubyte)(us >> 8);
}
}
--
More information about the Digitalmars-d-bugs
mailing list