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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 06:01:30 2024 UTC