Bug#504704: Crashes on big endian architectures due to incorrect data size used for byte swapping

Michel Dänzer daenzer at debian.org
Mon Nov 10 10:32:48 UTC 2008


On Sun, 2008-11-09 at 22:20 +0100, Gonéri Le Bouder wrote:
> On Thu, Nov 06, 2008 at 12:51:15PM +0100, Michel Dänzer wrote:
> > Package: teeworlds
> > Version: 0.4.3-1
> > Severity: important
> > Tags: patch
> > 
> 
> > Two swap_endian() calls in e_datafile.c pass the size in bytes instead of in
> > number of units to be swapped, resulting in memory corruption and consequent
> > crashes.
> > 
> > The attached patch fixes this and allows teeworlds to work on my PowerBook.
> Hi,
> 
> Thank you for the patch. Is the bug also present in Teeworlds 0.4.2?

I don't know if it's exactly the same in that version, but I was never
able to start a game before with any of the versions available in
Debian.


-- 
Earthling Michel Dänzer           |          http://tungstengraphics.com
Libre software enthusiast         |          Debian, X and DRI developer





More information about the Pkg-games-devel mailing list