valgrind issues in gd?

I ran valgrind on the “fontsizetest” program that comes with gd-2.0.33 and it came up with this warning:

==83135== Conditional jump or move depends on uninitialised value(s)
==83135==    at 0x2D2E2424: gdCacheGet (gdcache.c:108)
==83135==    by 0x2D2E3175: gdft_draw_bitmap (gdft.c:863)
==83135==    by 0x2D2E3AC1: gdImageStringFTEx (gdft.c:1280)
==83135==    by 0x2D2E3256: gdImageStringFT (gdft.c:904)

I looked at the code and I don’t see anything obviously wrong, but I emailed the maintainer just in case.

In the meantime, I’ve added this to my valgrind suppressions file:

{
   /usr/local/lib/libgd.so.4/gdCacheGet
   Memcheck:Cond
   obj:/usr/local/lib/libgd.so.4
   fun:gdCacheGet
   obj:/usr/local/lib/libgd.so.4
   fun:gdImageStringFTEx
}

Leave a Reply

Your email address will not be published. Required fields are marked *