1
0
mirror of https://github.com/php/php-src.git synced 2026-04-24 00:18:23 +02:00

- Fixed off-by-one in phar_build (patch by crrodriguez at opensuse dot org)

This commit is contained in:
Felipe Pena
2014-05-11 09:45:17 -03:00
parent c575ab0c88
commit fb3b8de98d
+1 -1
View File
@@ -1513,7 +1513,7 @@ static int phar_build(zend_object_iterator *iter, void *puser TSRMLS_DC) /* {{{
}
close_fp = 0;
opened = (char *) estrndup(str, sizeof("[stream]") + 1);
opened = (char *) estrndup(str, sizeof("[stream]") - 1);
goto after_open_fp;
case IS_OBJECT:
if (instanceof_function(Z_OBJCE_PP(value), spl_ce_SplFileInfo TSRMLS_CC)) {