mj                                       Sat, 11 Dec 2010 20:09:39 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=306234

Log:
* Fixed parameter check introduced with the recent fix for bug #53492.

* Improved the error message along the way.

Bug: http://bugs.php.net/53492 (Closed) Stack buffer overflow in imagepstext
      
Changed paths:
    U   php/php-src/trunk/ext/gd/gd.c

Modified: php/php-src/trunk/ext/gd/gd.c
===================================================================
--- php/php-src/trunk/ext/gd/gd.c       2010-12-11 19:47:26 UTC (rev 306233)
+++ php/php-src/trunk/ext/gd/gd.c       2010-12-11 20:09:39 UTC (rev 306234)
@@ -4290,8 +4290,8 @@
                return;
        }

-       if (aa_steps != 4 || aa_steps != 16) {
-               php_error_docref(NULL TSRMLS_CC, E_WARNING, "AA steps must be 4 
or 16");
+       if (aa_steps != 4 && aa_steps != 16) {
+               php_error_docref(NULL TSRMLS_CC, E_WARNING, "Antialias steps 
must be 4 or 16");
                RETURN_FALSE;
        }


-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to