summaryrefslogtreecommitdiff
path: root/archivers/php53-phar/files/patch-CVE-2015-2301
diff options
context:
space:
mode:
authorFlorian Smeets <flo@FreeBSD.org>2015-03-21 19:41:29 +0000
committerFlorian Smeets <flo@FreeBSD.org>2015-03-21 19:41:29 +0000
commitffdc459cc145ad9a280219a84b4b49a8f3ac7d99 (patch)
tree70e4269be5df87f445037078b25a308701696dc5 /archivers/php53-phar/files/patch-CVE-2015-2301
parent- Convert to new USE_GITHUB usage and remove deprecated GH_COMMIT (diff)
Add patches for the following CVEs
CVE-2015-2301 CVE-2014-9705 CVE-2015-0273 MFH: 2015Q1
Notes
Notes: svn path=/head/; revision=381839
Diffstat (limited to 'archivers/php53-phar/files/patch-CVE-2015-2301')
-rw-r--r--archivers/php53-phar/files/patch-CVE-2015-230112
1 files changed, 12 insertions, 0 deletions
diff --git a/archivers/php53-phar/files/patch-CVE-2015-2301 b/archivers/php53-phar/files/patch-CVE-2015-2301
new file mode 100644
index 000000000000..896408a16ffc
--- /dev/null
+++ b/archivers/php53-phar/files/patch-CVE-2015-2301
@@ -0,0 +1,12 @@
+--- phar_object.c 2015-03-16 13:56:47.878348393 -0400
++++ phar_object.c 2015-03-16 13:56:47.826347993 -0400
+@@ -2320,8 +2320,8 @@
+ }
+ its_ok:
+ if (SUCCESS == php_stream_stat_path(newpath, &ssb)) {
+- efree(oldpath);
+ zend_throw_exception_ex(spl_ce_BadMethodCallException, 0 TSRMLS_CC, "phar \"%s\" exists and must be unlinked prior to conversion", newpath);
++ efree(oldpath);
+ return NULL;
+ }
+ if (!phar->is_data) {