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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: laruence@php.net
New email:
PHP Version: OS:

 

 [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: Thu Nov 21 12:01:29 2024 UTC