]> granicus.if.org Git - php/commitdiff
Fixed possible overflows.
authorIlia Alshanetsky <iliaa@php.net>
Mon, 2 Feb 2004 00:06:17 +0000 (00:06 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Mon, 2 Feb 2004 00:06:17 +0000 (00:06 +0000)
ext/calendar/calendar.c

index 81cc37eadca01eb5953f4d7d9f0c499fe378fc7d..16fef3dbd47de9992bda54d221007c9742bbc403 100644 (file)
@@ -301,7 +301,7 @@ PHP_FUNCTION(jdtogregorian)
 {
        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 @@ PHP_FUNCTION(jdtojulian)
 {
        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 @@ PHP_FUNCTION(jdtojewish)
        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 @@ PHP_FUNCTION(jdtofrench)
 {
        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;