Bug 4331 - PATCH: Bots don't work on 64 bit Intel CPU's
Status: RESOLVED FIXED
Alias: None
Product: ioquake3
Classification: Unclassified
Component: Misc
Version: 1.36
Hardware: PC Linux
: P3 normal
Assignee: Zachary J. Slater
QA Contact: ioquake3 bugzilla mailing list
URL:
Depends on:
Blocks:
 
Reported: 2009-11-04 06:15 EST by Hans de Goede
Modified: 2009-11-05 08:20:47 EST
0 users

See Also:


Attachments
PATCH: Bots don't work on 64 bit Intel CPU's (1.11 KB, patch)
2009-11-04 06:15 EST, Hans de Goede

Description Hans de Goede 2009-11-04 06:15:59 EST
Created attachment 2196 [details]
PATCH: Bots don't work on 64 bit Intel CPU's

botlib abuses strcpy (source and dest overlap), and the strcpy function for 64
bit intel CPU's in the latest glibc, does not like this causing the bots to not
load.

The attached patch fixes this.

Note this patch should be credited to: Andreas Bierfert (andreas.bierfert at
lowlatency.de)

See:
http://bugzilla.redhat.com/show_bug.cgi?id=526338
Comment 1 Ludwig Nussel 2009-11-04 13:13:25 EST
can't reproduce here but you are right about the wrong use. applied, thanks.
Comment 2 Hans de Goede 2009-11-05 08:20:47 EST
FWIW: Reproducing requires a very recent glibc (such as the on in F-12) and an Intel 64 bit CPU (I tried reproducing first on amd 64 bit, no issue there).

Thanks for applying the patch.