Blame SOURCES/php-5.5.21-CVE-2015-2348.patch
|
|
8bac60 |
From 1291d6bbee93b6109eb07e8f7916ff1b7fcc13e1 Mon Sep 17 00:00:00 2001
|
|
|
8bac60 |
From: Stanislav Malyshev <stas@php.net>
|
|
|
8bac60 |
Date: Tue, 17 Mar 2015 12:47:58 -0700
|
|
|
8bac60 |
Subject: [PATCH] Fix bug #69207 - move_uploaded_file allows nulls in path
|
|
|
8bac60 |
|
|
|
8bac60 |
---
|
|
|
8bac60 |
NEWS | 3 +++
|
|
|
8bac60 |
ext/standard/basic_functions.c | 2 +-
|
|
|
8bac60 |
2 files changed, 4 insertions(+), 1 deletion(-)
|
|
|
8bac60 |
|
|
|
8bac60 |
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c
|
|
|
8bac60 |
index 9a9df30..c3e2230 100644
|
|
|
8bac60 |
--- a/ext/standard/basic_functions.c
|
|
|
8bac60 |
+++ b/ext/standard/basic_functions.c
|
|
|
8bac60 |
@@ -5831,7 +5831,7 @@ PHP_FUNCTION(move_uploaded_file)
|
|
|
8bac60 |
RETURN_FALSE;
|
|
|
8bac60 |
}
|
|
|
8bac60 |
|
|
|
8bac60 |
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &path, &path_len, &new_path, &new_path_len) == FAILURE) {
|
|
|
8bac60 |
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sp", &path, &path_len, &new_path, &new_path_len) == FAILURE) {
|
|
|
8bac60 |
return;
|
|
|
8bac60 |
}
|
|
|
8bac60 |
|