1
Vote

segfault in PixelFormatLookup

description

the actual code for PixelFormatLookup does not check for invalid input. For instance it should check that
pPI->pGUIDPixFmt != NULL
Otherwise the following call has undefined behavior:
ERR PixelFormatLookup(PKPixelInfo* pPI, U8 uLookupType)
[...]
            if (IsEqualGUID(pPI->pGUIDPixFmt, pixelInfo[i].pGUIDPixFmt)); /* crash ! */

comments