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

 ID:                 73103
 Updated by:         c...@php.net
 Reported by:        tvdijen at gmail dot com
 Summary:            Release 1.1.0 has random behaviour
 Status:             Closed
 Type:               Bug
-Package:            *General Issues
+Package:            PECL
 Operating System:   CentOS 7 + RHEL6
 PHP Version:        Irrelevant
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

> and if someone can tell me how to get a bug category and
> developer access to it, that would be great

For the latter, you'd have to request a PHP Git account, see
<http://php.net/git-php.php>.

With regard to the former, it *might* be helpful to file a
respective bug report.


Previous Comments:
------------------------------------------------------------------------
[2016-09-18 10:54:18] tvdijen at gmail dot com

Thanks Moritz!

------------------------------------------------------------------------
[2016-09-17 19:17:09] mbechler at eenterphace dot org

Commited a fix to SVN. Thanks for the patch, but I don't think it's
quite right - the problem is that the base64 encoded buffer is not zero
terminated anymore after the 1.1 changes (wrapping in zend_string) so
the strcpy overflows the allocated buffer (the size is correct). Fixed
that by properly using strncpy.

I guess this can be closed (and if someone can tell me how to get a bug 
category and developer access to it, that would be great).

------------------------------------------------------------------------
[2016-09-17 16:15:22] tvdijen at gmail dot com

Proposed fix:
https://github.com/tvdijen/krb5/commit/e932d7a4240aac75c5bfe930f20033b4aee7c601

This fixed the problem for me. I think it needs space for a trailing 
null-character.

------------------------------------------------------------------------
[2016-09-17 14:57:11] tvdijen at gmail dot com

Yet another update:
I've managed to narrow it down to the strcpy lines at the bottom of the 
doAuthentication-function. Specifically the second one.
Whenever I put in a RETURN_TRUE; above these lines, everything is working fine. 
When I put it underneath, de segfault is showing up again.

------------------------------------------------------------------------
[2016-09-17 12:25:23] tvdijen at gmail dot com

I was also able to lift this error from /var/log/httpd/error.log:

[Sat Sep 17 14:22:10.007578 2016] [core:notice] [pid 2914] AH00052: child pid 
2920 exit signal Segmentation fault (11)

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


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=73103


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

-- 
PECL development discussion Mailing List (http://pecl.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to