While investigating some issue with PHP Imagick library with Valgrind, it reported that there were some uninitialised variables being used by ImageMagick. These are also shown when running ImageMagick directly from the command line.
Code: Select all
valgrind /usr/local/bin/convert -size 100x100 gradient: gradient.jpg
==4790== Conditional jump or move depends on uninitialised value(s)
==4790== at 0x4EEF95F: DrawGradientImage (quantum.h:92)
==4790== by 0x4F5AD75: GradientImage (paint.c:488)
==4790== by 0x4FFC5C7: ReadGRADIENTImage (gradient.c:159)
==4790== by 0x4EC83A6: ReadImage (constitute.c:547)
==4790== by 0x4EC958A: ReadImages (constitute.c:853)
==4790== by 0x541888A: ConvertImageCommand (convert.c:615)
==4790== by 0x5499C50: MagickCommandGenesis (mogrify.c:168)
==4790== by 0x400924: main (convert.c:81)
==4790==
==4790== Conditional jump or move depends on uninitialised value(s)
==4790== at 0x4EEF9AB: DrawGradientImage (quantum.h:92)
==4790== by 0x4F5AD75: GradientImage (paint.c:488)
==4790== by 0x4FFC5C7: ReadGRADIENTImage (gradient.c:159)
==4790== by 0x4EC83A6: ReadImage (constitute.c:547)
==4790== by 0x4EC958A: ReadImages (constitute.c:853)
==4790== by 0x541888A: ConvertImageCommand (convert.c:615)
==4790== by 0x5499C50: MagickCommandGenesis (mogrify.c:168)
==4790== by 0x400924: main (convert.c:81)
==4790==
==4790== Conditional jump or move depends on uninitialised value(s)
==4790== at 0x4EB1827: TransformRGBImage (quantum-private.h:410)
==4790== by 0x508D761: WriteJPEGImage (jpeg.c:2121)
==4790== by 0x4EC7B6B: WriteImage (constitute.c:1111)
==4790== by 0x4EC9ECF: WriteImages (constitute.c:1330)
==4790== by 0x541919D: ConvertImageCommand (convert.c:3155)
==4790== by 0x5499C50: MagickCommandGenesis (mogrify.c:168)
==4790== by 0x400924: main (convert.c:81)
==4790==
==4790== Use of uninitialised value of size 8
==4790== at 0x4EB187E: TransformRGBImage (colorspace.c:2356)
==4790== by 0x508D761: WriteJPEGImage (jpeg.c:2121)
==4790== by 0x4EC7B6B: WriteImage (constitute.c:1111)
==4790== by 0x4EC9ECF: WriteImages (constitute.c:1330)
==4790== by 0x541919D: ConvertImageCommand (convert.c:3155)
==4790== by 0x5499C50: MagickCommandGenesis (mogrify.c:168)
==4790== by 0x400924: main (convert.c:81)
This is ImageMagick-6.8.8-9 compiled on `CentOS release 6.4 (Final)
Apologies in advance if reporting potential bugs is not appropriate
cheers
Dan