felipe Wed Jul 30 17:56:18 2008 UTC Modified files: /php-src/ext/intl/locale locale_methods.c Log: - MFB: Fixed crash when NULL is passed to locale_accept_from_http() http://cvs.php.net/viewvc.cgi/php-src/ext/intl/locale/locale_methods.c?r1=1.6&r2=1.7&diff_format=u Index: php-src/ext/intl/locale/locale_methods.c diff -u php-src/ext/intl/locale/locale_methods.c:1.6 php-src/ext/intl/locale/locale_methods.c:1.7 --- php-src/ext/intl/locale/locale_methods.c:1.6 Mon Jul 28 09:01:03 2008 +++ php-src/ext/intl/locale/locale_methods.c Wed Jul 30 17:56:18 2008 @@ -1692,7 +1692,7 @@ &outResult, http_accept, available, &status); uenum_close(available); INTL_CHECK_STATUS(status, "locale_accept_from_http: failed to find acceptable locale"); - if(outResult == ULOC_ACCEPT_FAILED) { + if(len < 0 || outResult == ULOC_ACCEPT_FAILED) { RETURN_FALSE; } RETURN_STRINGL(resultLocale, len, 1);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php