]> granicus.if.org Git - php/commitdiff
- 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 6f12af1f2de8075841216406afb2f8f3fd192a89..e793e3ca93511aa7beadb44d9a1e5bd869fdd506 100644 (file)
@@ -5903,7 +5903,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;