com php-src: Merge branch 'PHP-7.4': ext/zip/php_zip.c

From: Date: Tue, 08 Oct 2019 07:50:43 +0000
Subject: com php-src: Merge branch 'PHP-7.4': ext/zip/php_zip.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-108780@lists.php.net to get a copy of this message
Commit: e9be4622c86b4c0ca0f36f03d65e93e57b798a0e Author: Christoph M. Becker <cmbecker69@gmx.de> Tue, 8 Oct 2019 09:50:43 +0200 Parents: 1065becb57c259765125f23d441399af2ec64f56 88e0d888976602c947e9bd50eae6c4e99dcdc2aa Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e9be4622c86b4c0ca0f36f03d65e93e57b798a0e Log: Merge branch 'PHP-7.4' * PHP-7.4: Fix #78641: addGlob can modify given remove_path value Bugs: https://bugs.php.net/78641 Changed paths: MM ext/zip/php_zip.c Diff: diff --cc ext/zip/php_zip.c index d30ad8747f6,966efb58e69..e4fcc362ec5 --- a/ext/zip/php_zip.c +++ b/ext/zip/php_zip.c @@@ -1601,8 -1681,7 +1602,8 @@@ static void php_zip_add_from_pattern(IN if (remove_path && remove_path_len > 1) { size_t real_len = strlen(remove_path); if ((real_len > 1) && ((remove_path[real_len - 1] == '/') || (remove_path[real_len - 1] == '\\'))) { - remove_path[real_len - 1] = '\0'; + remove_path = estrndup(remove_path, real_len - 1); + remove_path_len -= 1; } }

« previous php.cvs (#108780) next »