php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62594 segfault in mysqlnd_res_meta::set_mode
Submitted: 2012-07-18 11:02 UTC Modified: 2012-07-18 11:14 UTC
From: laruence@php.net Assigned: laruence (profile)
Status: Closed Package: MySQL related
PHP Version: 5.4.4 OS:
Private report: No CVE-ID: None
 [2012-07-18 11:02 UTC] laruence@php.net
Description:
------------
there is a line: unsigned int mode_len = strlen(mode)

but mode may be NULL.




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-07-18 11:05 UTC] laruence@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=25be12a3bcd4a56a094d28b73cdc5cee68970bf3
Log: Fixed bug #62594 (segfault in mysqlnd_res_meta::set_mode)
 [2012-07-18 11:05 UTC] laruence@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=25be12a3bcd4a56a094d28b73cdc5cee68970bf3
Log: Fixed bug #62594 (segfault in mysqlnd_res_meta::set_mode)
 [2012-07-18 11:05 UTC] laruence@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: laruence
 [2012-07-18 11:05 UTC] laruence@php.net
This bug has been fixed in SVN.

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.


 [2012-07-18 11:14 UTC] laruence@php.net
backtrace: 
(gdb) bt
#0  0x000000000080186f in php_mysqlnd_debug_set_mode_pub (self=0x133ad930, 
mode=0x0)
    at /home/huixinchen/opensource/trunk/ext/mysqlnd/mysqlnd_debug.c:522
#1  0x0000000000803dd3 in zm_activate_mysqlnd (type=1, module_number=17) at 
/home/huixinchen/opensource/trunk/ext/mysqlnd/php_mysqlnd.c:316
#2  0x00000000008b941d in zend_activate_modules () at 
/home/huixinchen/opensource/trunk/Zend/zend_API.c:2296
#3  0x0000000000820fe4 in php_request_startup () at 
/home/huixinchen/opensource/trunk/main/main.c:1560
#4  0x00000000009fb491 in do_cli (argc=64, argv=0x7fffeb79d458) at 
/home/huixinchen/opensource/trunk/sapi/cli/php_cli.c:956
#5  0x00000000009fc684 in main (argc=64, argv=0x7fffeb79d458) at 
/home/huixinchen/opensource/trunk/sapi/cli/php_cli.c:1360
 [2014-10-07 23:23 UTC] stas@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=25be12a3bcd4a56a094d28b73cdc5cee68970bf3
Log: Fixed bug #62594 (segfault in mysqlnd_res_meta::set_mode)
 [2014-10-07 23:34 UTC] stas@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=25be12a3bcd4a56a094d28b73cdc5cee68970bf3
Log: Fixed bug #62594 (segfault in mysqlnd_res_meta::set_mode)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Nov 23 08:01:28 2024 UTC