#47736 [Opn->Fbk]: imap_headerinfo Segfault with large To:
| From: | pajoye@php.net | Date: | Mon, 23 Mar 2009 12:16:27 +0000 |
| Subject: | #47736 [Opn->Fbk]: imap_headerinfo Segfault with large To: | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-135011@lists.php.net to get a copy of this message | ||
ID: 47736
Updated by: pajoye@php.net
Reported By: etremblay at kronostechnologies dot com
-Status: Open
+Status: Feedback
Bug Type: IMAP related
Operating System: linux
PHP Version: 5.2.9
New Comment:
Which imap version do you use?
Previous Comments:
------------------------------------------------------------------------
[2009-03-23 12:14:50] etremblay at kronostechnologies dot com
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb757e700 (LWP 21722)]
0xb7e7fbb6 in memcpy () from /lib/tls/i686/cmov/libc.so.6
(gdb) bt
#0 0xb7e7fbb6 in memcpy () from /lib/tls/i686/cmov/libc.so.6
#1 0xbf877e84 in ?? ()
#2 0xb6c72d42 in ?? () from /usr/lib/libc-client.so.2007b
#3 0xb6c738b3 in rfc822_output_address () from
/usr/lib/libc-client.so.2007b
#4 0xb6c73abd in rfc822_output_address_list () from
/usr/lib/libc-client.so.2007b
#5 0xb6f9a0ea in _php_rfc822_write_address (addresslist=0xb8ccc6f8) at
/opt/php-5.2.9/ext/imap/php_imap.c:3947
#6 0x0061632e in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
------------------------------------------------------------------------
[2009-03-21 00:36:40] felipe@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php
for Win32
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
------------------------------------------------------------------------
[2009-03-20 19:24:37] etremblay at kronostechnologies dot com
Description:
------------
This is a duplicate of bug #19280 which is closed.
I can reproduced it php 5.2.9.
With 5.2.6, it worked well.
I see that imap address related code have been touched by bug #46918
(shown in 5.2.9 releasenotes)
Look like someone broke it when fixing some other issue.
Reproduce code:
---------------
Look in bug #19280
Expected result:
----------------
No segfault
Actual result:
--------------
Segfault
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=47736&edit=1