- fix #55622, mem corruption on large input
authorPierre Joye <pajoye@php.net>
Tue, 6 Sep 2011 17:41:08 +0000 (17:41 +0000)
committerPierre Joye <pajoye@php.net>
Tue, 6 Sep 2011 17:41:08 +0000 (17:41 +0000)
ext/standard/basic_functions.c

index ea5c3683fbbbe29d85f99811c468e53651e7469b..b3e7a10811da73a5ead4b408ff58c64f2de22c45 100644 (file)
@@ -6022,7 +6022,7 @@ PHP_FUNCTION(parse_ini_file)
 PHP_FUNCTION(parse_ini_string)
 {
        char *string = NULL, *str = NULL;
-       int str_len = 0;
+       size_t str_len = 0;
        zend_bool process_sections = 0;
        long scanner_mode = ZEND_INI_SCANNER_NORMAL;
        zend_ini_parser_cb_t ini_parser_cb;