Bug #68741 [Opn->Csd]: Null pointer deference
| From: | laruence@php.net | Date: | Thu, 08 Jan 2015 08:15:51 +0000 |
| Subject: | Bug #68741 [Opn->Csd]: Null pointer deference | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-189732@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=68741&edit=1
ID: 68741
Updated by: laruence@php.net
Reported by: bugreports at internot dot info
Summary: Null pointer deference
-Status: Open
+Status: Closed
Type: Bug
Package: *Database Functions
Operating System: Linux Ubuntu 14.04
PHP Version: master-Git-2015-01-04 (Git)
-Assigned To:
+Assigned To: laruence
Block user comment: N
Private report: N
New Comment:
The fix for this bug has been committed.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
For Windows:
http://windows.php.net/snapshots/
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2015-01-08 08:09:55] laruence@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=124fb22a13fafa3648e4e15b4f207c7096d8155e
Log: Fixed bug #68739 #68740 #68741
------------------------------------------------------------------------
[2015-01-04 12:16:33] bugreports at internot dot info
Description:
------------
Hi,
In /ext/pgsql/pgsql.c:
6447 token = php_strtok_r(table_copy, ".", &tmp);
6448 len = strlen(token);
'token' may return NULL, leading to a null pointer deference.
Elsewhere, the result of php_strtok_r() is checked against NULL, and should be here too.
A quick look shows that this may be reproducable by running
pg_insert() with a NULL table-name.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=68741&edit=1