[Bf-committers] possible bug in hamx.c

Maarten Gribnau bf-committers@blender.org
Thu, 19 Dec 2002 22:44:49 +0100


I hope Frank is reading this and stepping in.
Maybe this function is only called for ibuf->ftype==AN_hamx but I agree 
it is ugly.
Maarten

On Thursday, Dec 19, 2002, at 22:39 Europe/Amsterdam, Kent Mein wrote:

> I found a possible bug in blender/source/blender/imbuf/intern/hamx.c
>
> If you jump down th the imb_enc_anim function
> look the the var steps.
>
> It should probably be initalized to something,
> or move steps =2 from the case statment to avoid a divide by 0 problem
>
> Or dump the size =
> and malloc stuff inside of the case statement as well.
>
> I don't know enough about the code to make a judgement call, my
> best guess would be the later move it to the case statement
> and initalize steps to 0?
>
> Kent
> -- 
> mein@cs.umn.edu
> http://www.cs.umn.edu/~mein
> _______________________________________________
> Bf-committers mailing list
> Bf-committers@blender.org
> http://www.blender.org/mailman/listinfo/bf-committers
>