Crossfire Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CF: Major bugs in 92.2



> From: "tuan (t.) doan" writes:
> 
>    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)\

	Argh. I thought I sent out a "patch" for this. Actually, the 
	problem is that I put a butt load of images in the animation
	section of the archetype "torch". This is foolish, actually 
	it can be taken care of by using the "food" variable appropriately
	Ill post an updated "torch" arch at the end of this message.

>   
> 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);
> 
	This is my fault again. Ill check out your patch. Thanks!


							b.t.

(patch for the archetypes "torch_1" and "torch_2", to replace those entries in
the "torch.arc" file)

Object torch_1
name torch
face torch_lit1.111
other_arch dim_torch
anim   
torch_lit1.111
torch_lit2.111
mina
material 144
food 500
changing 1
value 0
weight 3000
speed 0.15
glow_radius 3
editable 128
end
Object dim_torch
name torch
face torch_lit2.111
other_arch burnt_torch
anim
torch_lit1.111
torch_lit2.111
mina
material 144
food 60
changing 1
value 0
weight 2990
speed 0.15
glow_radius 2
end