[PATCH 2/3] Fix null pointer dereference

From: Date: Wed, 21 Jan 2015 18:27:17 +0000
Subject: [PATCH 2/3] Fix null pointer dereference
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-80944@lists.php.net to get a copy of this message
--- These issues are not serious(only triggerable by the runner/caller of the PHP program), so no need to make them private. sapi/litespeed/lsapi_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapi/litespeed/lsapi_main.c b/sapi/litespeed/lsapi_main.c index 2b2385c..d767306 100644 --- a/sapi/litespeed/lsapi_main.c +++ b/sapi/litespeed/lsapi_main.c @@ -487,7 +487,7 @@ static int lsapi_chdir_primary_script( zend_file_handle * file_handle ) getcwd( s_cur_chdir, sizeof( s_cur_chdir ) ); p = strrchr( file_handle->filename, '/' ); - if ( *p ) + if ( p ) { *p = 0; if ( strcmp( file_handle->filename, s_cur_chdir ) != 0 ) { -- 1.9.1

« previous php.internals (#80944) next »