stas Tue, 16 Feb 2010 20:34:03 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=295183
Log: fix buffer overflow Changed paths: U php/php-src/trunk/ext/unicode/transform.c Modified: php/php-src/trunk/ext/unicode/transform.c =================================================================== --- php/php-src/trunk/ext/unicode/transform.c 2010-02-16 19:36:02 UTC (rev 295182) +++ php/php-src/trunk/ext/unicode/transform.c 2010-02-16 20:34:03 UTC (rev 295183) @@ -39,9 +39,9 @@ } if (variant) { - id_len = u_snprintf(id, sizeof(id)-1, "%S-%S/%S", from, to, variant); + id_len = u_snprintf(id, TEXT_CHARS(sizeof(id))-1, "%S-%S/%S", from, to, variant); } else { - id_len = u_snprintf(id, sizeof(id)-1, "%S-%S", from, to); + id_len = u_snprintf(id, TEXT_CHARS(sizeof(id))-1, "%S-%S", from, to); } if (id_len < 0) {
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php