]> 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 9b704f1838b07386c42aafbe9a254a1ca859d526..b70939789e62e0296311ac1f688be6880adaf3d2 100644 (file)
@@ -5938,7 +5938,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;