iliaa Sun Feb 1 19:06:20 2004 EDT
Modified files:
/php-src/ext/calendar calendar.c
Log:
Fixed possible overflows.
http://cvs.php.net/diff.php/php-src/ext/calendar/calendar.c?r1=1.39&r2=1.40&ty=u
Index: php-src/ext/calendar/calendar.c
diff -u php-src/ext/calendar/calendar.c:1.39 php-src/ext/calendar/calendar.c:1.40
--- php-src/ext/calendar/calendar.c:1.39 Thu Jan 8 03:14:19 2004
+++ php-src/ext/calendar/calendar.c Sun Feb 1 19:06:17 2004
@@ -18,7 +18,7 @@
| Wez Furlong <[EMAIL PROTECTED]> |
+----------------------------------------------------------------------+
*/
-/* $Id: calendar.c,v 1.39 2004/01/08 08:14:19 andi Exp $ */
+/* $Id: calendar.c,v 1.40 2004/02/02 00:06:17 iliaa Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -301,7 +301,7 @@
{
long julday;
int year, month, day;
- char date[10];
+ char date[16];
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &julday) == FAILURE)
{
RETURN_FALSE;
@@ -337,7 +337,7 @@
{
long julday;
int year, month, day;
- char date[10];
+ char date[16];
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &julday) == FAILURE)
{
RETURN_FALSE;
@@ -469,7 +469,7 @@
long julday, fl = 0;
zend_bool heb = 0;
int year, month, day;
- char date[10], hebdate[25];
+ char date[16], hebdate[25];
char *dayp, *yearp;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l|bl", &julday, &heb,
&fl) == FAILURE) {
@@ -524,7 +524,7 @@
{
long julday;
int year, month, day;
- char date[10];
+ char date[16];
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &julday) == FAILURE)
{
RETURN_FALSE;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php