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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user