We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bca12e4 commit 6ff72aeCopy full SHA for 6ff72ae
tests/gdimagecrop/php_bug_72494.c
@@ -0,0 +1,23 @@
1
+#include <stdio.h>
2
+#include <stdlib.h>
3
+#include "gd.h"
4
+
5
+#include "gdtest.h"
6
7
+int main()
8
+{
9
+ gdImagePtr im, exp;
10
+ int error = 0;
11
12
+ im = gdImageCreate(50, 50);
13
14
+ if (!im) {
15
+ gdTestErrorMsg("gdImageCreate failed.\n");
16
+ return 1;
17
+ }
18
19
+ gdImageCropThreshold(im, 1337, 0);
20
+ gdImageDestroy(im);
21
+ /* this bug tests a crash, it never reaches this point if the bug exists*/
22
+ return 0;
23
+}
0 commit comments