php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68813 Unchecked return value
Submitted: 2015-01-12 16:12 UTC Modified: 2017-10-24 23:28 UTC
From: bugreports at internot dot info Assigned:
Status: Suspended Package: mysqlnd_memcache (PECL)
PHP Version: master-Git-2015-01-12 (Git) OS: Linux Ubuntu 14.04
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
10 - 7 = ?
Subscribe to this entry?

 
 [2015-01-12 16:12 UTC] bugreports at internot dot info
Description:
------------
Hi,

In /ext/mysqlnd/mysqlnd.c:

1593        DBG_RETURN(mysqlnd_cset_escape_slashes(mysqlnd_find_charset_name("latin1"), newstr, escapestr, escapestr_len));

It is possible for mysqlnd_find_charset_name() to return NULL, which will cause a null poniter dereference.

Would be triggerable if mysqlnd_charsets->[..] did not contain "latin1".


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-10-24 23:28 UTC] kalle@php.net
-Status: Open +Status: Suspended
 [2017-10-24 23:28 UTC] kalle@php.net
The mysqlnd_memcache package have not had a release since 2013 and no development since, its safe to say that this package is no longer maintained, if development picks back up then this report should be re-opened
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon Mar 18 17:01:28 2019 UTC