List Info

Thread: Array bounds in tracePath




Array bounds in tracePath
country flaguser name
Czech Republic
2007-02-19 11:02:32
Hello,
there's a 'points[4]' array in 'tracePath' function.
However, this code:

for (i=0; i <= 4; i++)
	(q+i)->point=points[i];

on line 5214 of magick/draw.c requests points[4] element
(which is above
the array bounds). Since it is the only place where this
element is used
(uninitialized), I assume there should be <= 3. Am I
right, or I miss
something?

The attached patch was generated from 3.6.0 version, but
this seems to
be present in the newest stable source as well.

Thank you

_______________________________________________
Magick-bugs mailing list
Magick-bugsimagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick-
bugs

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )