Crossfire Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CF: Major bugs in 92.2
- To: crossfire (at) ifi.uio.no
- Subject: CF: Major bugs in 92.2
- From: "tuan (t.) doan" <>
- Date: Thu, 30 May 1996 17:02:00 -0400
- Sender: owner-crossfire
- X400-Content-Type: P2-1984 (2)
- X400-MTS-Identifier: [/PRMD=BNR/ADMD=TELECOM.CANADA/C=CA/;bcars520.b.108:30.04.96.21.02.34]
- X400-Originator: /dd.id=1627294/g=tuan/i=t/s=doan/@bnr.ca
- X400-Received: by mta bnr.ca in /PRMD=BNR/ADMD=TELECOM.CANADA/C=CA/; Relayed; Thu, 30 May 1996 17:03:22 -0400
- X400-Received: by /PRMD=BNR/ADMD=TELECOM.CANADA/C=CA/; Relayed; Thu, 30 May 1996 17:02:34 -0400
- X400-Received: by /PRMD=BNR/ADMD=TELECOM.CANADA/C=CA/; Relayed; Thu, 30 May 1996 17:02:00 -0400
Hello,
I found the following bugs in 92.2; it may or may not been fixed in later
releases.
common/loader.c:load_object
faces[] is an array of MAX_ANIMATIONS=64 which is not enough to load
archetypes torch...When the array is written out of bound, compiling
under -O will cause a memory trampler (it will cause a core dump when
compiled under -g)
FIX: 1. Increase MAX_ANIMATIONS=512 or create dynamic memory allocation
2. Put the following hook to stop the program from continuing:
line 841:
if (anim_start>MAX_ANIMATIONS) {
fprintf(stderr,"load_object: anim_start > MAX_ANIMATIONS (%d)\n",MAX_ANIMATIONS);
exit(1);
}
server/spell_util.c:get_pointed_target
any spells that call get_pointed_target will crash the game if the direction
is not given (ie: pressing the '.')
FIX: 1. return appropriate value if direction not given
line 1870
if (dir==0) return ((object *) NULL);
Who knows how many timebombs are still ticking...