valgrind caught something in DrawImage (draw.c:2754)
Posted: 2007-07-20T07:35:47-07:00
Here is the snippet of valgrind's output:
These are the following four lines in 6.3.5-3:
In a quick glance, the just-allocated primitive_info does not, indeed, have its point sub-structure initialized...
Code: Select all
==1329==
==1329== Use of uninitialised value of size 8
==1329== at 0x3C2C7E8A: DrawImage (draw.c:2754)
==1329== by 0x3C25F0B3: ??? (annotate.c:1612)
==1329== by 0x3C25D7F8: ??? (annotate.c:1075)
==1329== by 0x3C25C453: AnnotateImage (annotate.c:422)
==1329==
==1329== Use of uninitialised value of size 8
==1329== at 0x3C2C7EA4: DrawImage (draw.c:2755)
==1329== by 0x3C25F0B3: ??? (annotate.c:1612)
==1329== by 0x3C25D7F8: ??? (annotate.c:1075)
==1329== by 0x3C25C453: AnnotateImage (annotate.c:422)
==1329==
==1329== Use of uninitialised value of size 8
==1329== at 0x3C2C7EBF: DrawImage (draw.c:2756)
==1329== by 0x3C25F0B3: ??? (annotate.c:1612)
==1329== by 0x3C25D7F8: ??? (annotate.c:1075)
==1329== by 0x3C25C453: AnnotateImage (annotate.c:422)
==1329==
==1329== Use of uninitialised value of size 8
==1329== at 0x3C2C7ED9: DrawImage (draw.c:2757)
==1329== by 0x3C25F0B3: ??? (annotate.c:1612)
==1329== by 0x3C25D7F8: ??? (annotate.c:1075)
==1329== by 0x3C25C453: AnnotateImage (annotate.c:422)
Code: Select all
bounds.x1=primitive_info[j].point.x;
bounds.y1=primitive_info[j].point.y;
bounds.x2=primitive_info[j].point.x;
bounds.y2=primitive_info[j].point.y;