Source: blobandconquer
Version: 0.99-1
Severity: grave
Justification: makes package unusable
Tags: patch

blobandconquer, installed on i386, segfaults after spewing some
apparently-corrupt debug text.

blobandconquer, installed on amd64, works fine.

Recompiled on i386 and with the rebuilt blobandconquer-data installed on
both i386 and amd64, the situation is reversed. Examination of the .pak file
shows that the two versions have different sizes; it turns out that there are
two related causes, the first being use of uLongf, defined in zlib's include
files as unsigned long, and the second being the reading and writing of the
whole of each FileData object, rather than just the necessary data.

The attached patch fixes this (with casts etc.) for at least these two
architectures, but it still needs correction for big-endian systems. It
should (probably) be reworked a little to properly serialise the reading &
writing within the FileData class.

-- 
| Darren Salt    | linux or ds at              | nr. Ashington, | Toon
| RISC OS, Linux | youmustbejoking,demon,co,uk | Northumberland | Army
|   <URL:http://www.youmustbejoking.demon.co.uk/> (PGP 2.6, GPG keys)

Recent investments will yield a slight profit.

Attachment: bw2_data_fix.patch
Description: Binary data

Reply via email to