21 lines
339 B
C
21 lines
339 B
C
/**
|
|
* Simple test case that confirms the failure of using `gdImageCreateFromHeif`
|
|
* with a NULL pointer.
|
|
*/
|
|
|
|
|
|
#include "gd.h"
|
|
#include "gdtest.h"
|
|
|
|
int main()
|
|
{
|
|
gdImagePtr im;
|
|
|
|
im = gdImageCreateFromHeif(NULL);
|
|
if (!gdTestAssert(im == NULL))
|
|
gdImageDestroy(im);
|
|
gdImageHeif(im, NULL); /* noop safely */
|
|
|
|
return gdNumFailures();
|
|
}
|