Edit report at https://bugs.php.net/bug.php?id=60226&edit=1

 ID:                 60226
 Updated by:         fel...@php.net
 Reported by:        glen at delfi dot ee
 Summary:            segfault when calling setCAPath
-Status:             Open
+Status:             Closed
 Type:               Bug
 Package:            oauth
 Operating System:   PLD Linux
 PHP Version:        5.3.8
-Assigned To:        
+Assigned To:        felipe
 Block user comment: N
 Private report:     N

 New Comment:

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.




Previous Comments:
------------------------------------------------------------------------
[2011-11-05 22:03:01] glen at delfi dot ee

Description:
------------
$ cat tests/setCAPath.php 
<?php

$oauth = new OAuth('1', '2', OAUTH_SIG_METHOD_HMACSHA1, OAUTH_AUTH_TYPE_URI);
$o = $oauth->setCAPath('/etc/certs/ca-certificates.crt');
error_log("set path: $o");


this program causes segfault:

Program received signal SIGSEGV, Segmentation fault.
0x404d3afa in memcpy () from /lib/tls/libc.so.6
(gdb) bt
#0  0x404d3afa in memcpy () from /lib/tls/libc.so.6
#1  0x4018e635 in _estrndup () from /usr/lib/libphp_common-5.2.17.so
#2  0x41a9be2e in zim_oauth_setCAPath (ht=18, return_value=0x405b9628, 
return_value_ptr=0x0, this_ptr=0x10, return_value_used=1, tsrm_ls=0x405bb0e8)
    at /home/glen/rpm/pld/BUILD/php-pecl-oauth-1.2.2/oauth.c:2125
#3  0x401c80df in execute () from /usr/lib/libphp_common-5.2.17.so
#4  0x401c772c in execute () from /usr/lib/libphp_common-5.2.17.so
#5  0x401a9fe5 in zend_execute_scripts () from /usr/lib/libphp_common-5.2.17.so
#6  0x40162aa9 in php_execute_script () from /usr/lib/libphp_common-5.2.17.so
#7  0x0804b70d in main ()
(gdb) 




------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=60226&edit=1

Reply via email to