summaryrefslogtreecommitdiff
path: root/Build/source/libs/gd/libgd-src/tests/gdimagecrop/php_bug_72494.c
blob: 3bd19be788bf48a5cf1b9842f77d4b046a7aa241 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <stdio.h>
#include <stdlib.h>
#include "gd.h"

#include "gdtest.h"

int main()
{
	gdImagePtr im;

	im = gdImageCreate(50, 50);

	if (!im) {
		gdTestErrorMsg("gdImageCreate failed.\n");
		return 1;
	}

	gdImageCropThreshold(im, 1337, 0);
	gdImageDestroy(im);
	/* this bug tests a crash, it never reaches this point if the bug exists*/
	return 0;
}