pajoye Sat Apr 14 17:38:38 2007 UTC Modified files: (Branch: PHP_4_4) /php-src NEWS /php-src/ext/gd/libgd gd.c Log: - MFH: libgd #74, gdImageFilledArc, huge CPU usage with large angles http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.1247.2.920.2.222&r2=1.1247.2.920.2.223&diff_format=u Index: php-src/NEWS diff -u php-src/NEWS:1.1247.2.920.2.222 php-src/NEWS:1.1247.2.920.2.223 --- php-src/NEWS:1.1247.2.920.2.222 Fri Apr 13 00:55:48 2007 +++ php-src/NEWS Sat Apr 14 17:38:38 2007 @@ -3,7 +3,9 @@ ?? ??? 2007, Version 4.4.7 - Fixed bug #38236 (binary data gets corrupted on multipart/formdata POST) (patch by [EMAIL PROTECTED]) - +- Fixed huge CPU usage in imagearc when used with large angles (Pierre) + (libgd bug #74) + 11 Apr 2007, Version 4.4.7RC1 - Fixed MOPB-33-2007 (PHP mail() Message ASCIIZ Byte Truncation). (Ilia) - Fixed MOPB-32-2007 (Double free inside session_decode()). (Ilia) http://cvs.php.net/viewvc.cgi/php-src/ext/gd/libgd/gd.c?r1=1.24.2.36.2.1&r2=1.24.2.36.2.2&diff_format=u Index: php-src/ext/gd/libgd/gd.c diff -u php-src/ext/gd/libgd/gd.c:1.24.2.36.2.1 php-src/ext/gd/libgd/gd.c:1.24.2.36.2.2 --- php-src/ext/gd/libgd/gd.c:1.24.2.36.2.1 Fri Sep 30 21:05:04 2005 +++ php-src/ext/gd/libgd/gd.c Sat Apr 14 17:38:38 2007 @@ -1607,6 +1607,14 @@ int lx = 0, ly = 0; int fx = 0, fy = 0; + if (s > 360) { + s = s % 360; + } + + if (e > 360) { + e = e % 360; + } + while (s<0) { s += 360; }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php