Bug #68840 [Opn->Csd]: Null pointer deference

From: Date: Sun, 18 Jan 2015 04:35:23 +0000
Subject: Bug #68840 [Opn->Csd]: Null pointer deference
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-190034@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=68840&edit=1 ID: 68840 Updated by: laruence@php.net Reported by: bugreports at internot dot info Summary: Null pointer deference -Status: Open +Status: Closed Type: Bug Package: *General Issues Operating System: Linux Ubuntu 14.04 PHP Version: master-Git-2015-01-15 (Git) Block user comment: N Private report: N New Comment: Automatic comment on behalf of laruence Revision: http://git.php.net/?p=php-src.git;a=commit;h=6a13e1f767288ad7944beb5e163d1621bd83617d Log: Fixed bug #68840 (Null pointer deference) Previous Comments: ------------------------------------------------------------------------ [2015-01-15 17:19:58] bugreports at internot dot info Description: ------------ Hi, In /main/main.c: 381 tmp_value = (ini_entry->orig_value ? ini_entry->orig_value->val : NULL ); 382 tmp_value_length = (int)ini_entry->orig_value->len; That check on L381, "ini_entry->orig_value ? ini_entry->orig_value->val : NULL", implys that it ms possible for ini_entry->orig_value to be NULL. However, the next line, it is dereferenced anyways. Either the test is unneeded, or a test is needed for L382. Thanks, ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=68840&edit=1

« previous php.bugs (#190034) next »