diff options
Diffstat (limited to 'ext/gd/gd_compat.c')
-rw-r--r-- | ext/gd/gd_compat.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/gd/gd_compat.c b/ext/gd/gd_compat.c index ff21034ae7..dc6a95ae11 100644 --- a/ext/gd/gd_compat.c +++ b/ext/gd/gd_compat.c @@ -48,6 +48,8 @@ const char * gdPngGetVersionString() int overflow2(int a, int b) { + TSRMLS_FETCH(); + if(a <= 0 || b <= 0) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "gd warning: one parameter to a memory allocation multiplication is negative or zero, failing operation gracefully\n"); return 1; |