iliaa Mon Nov 13 15:33:40 2006 UTC Modified files: /php-src/ext/com_dotnet com_variant.c Log: MFB: Fixed bug #36644 (possible crash in variant_date_from_timestamp()). http://cvs.php.net/viewvc.cgi/php-src/ext/com_dotnet/com_variant.c?r1=1.16&r2=1.17&diff_format=u Index: php-src/ext/com_dotnet/com_variant.c diff -u php-src/ext/com_dotnet/com_variant.c:1.16 php-src/ext/com_dotnet/com_variant.c:1.17 --- php-src/ext/com_dotnet/com_variant.c:1.16 Sat Feb 4 10:59:18 2006 +++ php-src/ext/com_dotnet/com_variant.c Mon Nov 13 15:33:40 2006 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: com_variant.c,v 1.16 2006/02/04 10:59:18 rrichards Exp $ */ +/* $Id: com_variant.c,v 1.17 2006/11/13 15:33:40 iliaa Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -806,6 +806,11 @@ return; } + if (timestamp < 0) { + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Timestamp value must be a positive value."); + RETURN_FALSE; + } + VariantInit(&res); tzset(); ttstamp = timestamp;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php