Skip to content

Commit 7537e63

Browse files
committed
Merge branch 'PHP-5.4' into PHP-5.4.42
* PHP-5.4: update NEWS Fix bug #69646 OS command injection vulnerability in escapeshellarg Fix #69719 - more checks for nulls in paths fix test description Fixed Buf #68812 Unchecked return value.
2 parents c3b2360 + 539738c commit 7537e63

File tree

3 files changed

+21
-5
lines changed

3 files changed

+21
-5
lines changed

NEWS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ PHP NEWS
55
- Core:
66
. Imroved fix for bug #69545 (Integer overflow in ftp_genlist() resulting in
77
heap overflow). (Max Spelsberg)
8+
. Fixed bug #69646 (OS command injection vulnerability in escapeshellarg).
9+
(Anatol Belski)
10+
. Fixed bug #69719 (Incorrect handling of paths with NULs). (Stas)
11+
12+
- Litespeed SAPI:
13+
. Fixed bug #68812 (Unchecked return value). (George Wang)
814

915
- Postgres:
1016
. Fixed bug #69667 (segfault in php_pgsql_meta_data). (Remi)

ext/pgsql/tests/pg_insert_002.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
PostgreSQL pg_select() - basic test using schema
2+
PostgreSQL pg_insert() - test for CVE-2015-1532
33
--SKIPIF--
44
<?php include("skipif.inc"); ?>
55
--FILE--

sapi/litespeed/lsapilib.c

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3131,10 +3131,20 @@ static int lsapi_initSuEXEC()
31313131
if ( !s_defaultUid || !s_defaultGid )
31323132
{
31333133
pw = getpwnam( "nobody" );
3134-
if ( !s_defaultUid )
3135-
s_defaultUid = pw->pw_uid;
3136-
if ( !s_defaultGid )
3137-
s_defaultGid = pw->pw_gid;
3134+
if ( pw )
3135+
{
3136+
if ( !s_defaultUid )
3137+
s_defaultUid = pw->pw_uid;
3138+
if ( !s_defaultGid )
3139+
s_defaultGid = pw->pw_gid;
3140+
}
3141+
else
3142+
{
3143+
if ( !s_defaultUid )
3144+
s_defaultUid = 10000;
3145+
if ( !s_defaultGid )
3146+
s_defaultGid = 10000;
3147+
}
31383148
}
31393149
return 0;
31403150
}

0 commit comments

Comments
 (0)