diff options
Diffstat (limited to 'Build/source/libs/gd/libgd-src/tests/gdimagecrop/php_bug_72494.c')
-rw-r--r-- | Build/source/libs/gd/libgd-src/tests/gdimagecrop/php_bug_72494.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Build/source/libs/gd/libgd-src/tests/gdimagecrop/php_bug_72494.c b/Build/source/libs/gd/libgd-src/tests/gdimagecrop/php_bug_72494.c new file mode 100644 index 00000000000..3bd19be788b --- /dev/null +++ b/Build/source/libs/gd/libgd-src/tests/gdimagecrop/php_bug_72494.c @@ -0,0 +1,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; +} |