File: CVE-2015-4025-4026.patch

package info (click to toggle)
php5 5.3.3.1-7%2Bsqueeze29
  • links: PTS, VCS
  • area: main
  • in suites: squeeze-lts
  • size: 123,520 kB
  • ctags: 55,742
  • sloc: ansic: 633,963; php: 19,620; sh: 11,344; xml: 5,816; cpp: 2,400; yacc: 1,745; exp: 1,514; makefile: 1,019; pascal: 623; awk: 537; sql: 22
file content (38 lines) | stat: -rw-r--r-- 1,644 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
From be9b2a95adb504abd5acdc092d770444ad6f6854 Mon Sep 17 00:00:00 2001
From: Stanislav Malyshev <stas@php.net>
Date: Sat, 9 May 2015 23:13:06 -0700
Subject: [PATCH] Fixed bug #69418 - more s->p fixes for filenames

---
 ext/pcntl/pcntl.c              | 74 +++++++++++++++++++++---------------------
 ext/standard/basic_functions.c | 24 +++++++-------
 ext/standard/dir.c             | 62 +++++++++++++++++------------------
 ext/standard/file.c            | 10 +++---
 4 files changed, 85 insertions(+), 85 deletions(-)

Index: php5-5.3.3.1/ext/pcntl/pcntl.c
===================================================================
--- php5-5.3.3.1.orig/ext/pcntl/pcntl.c	2015-07-28 14:08:39.000000000 +0200
+++ php5-5.3.3.1/ext/pcntl/pcntl.c	2015-07-28 14:10:33.000000000 +0200
@@ -669,7 +669,7 @@
 	int path_len;
 	ulong key_num;
 		
-	if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|aa", &path, &path_len, &args, &envs) == FAILURE) {
+	if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p|aa", &path, &path_len, &args, &envs) == FAILURE) {
 		return;
 	}
 	
Index: php5-5.3.3.1/ext/standard/basic_functions.c
===================================================================
--- php5-5.3.3.1.orig/ext/standard/basic_functions.c	2015-07-28 14:08:39.000000000 +0200
+++ php5-5.3.3.1/ext/standard/basic_functions.c	2015-07-28 14:08:38.000000000 +0200
@@ -5475,7 +5475,7 @@
 	int new_value_len;
 	char *old_value;
 
-	if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &new_value, &new_value_len) == FAILURE) {
+	if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p", &new_value, &new_value_len) == FAILURE) {
 		return;
 	}