Re: [PHP-DEV] PHP 4.0.6 IMAP BUG
On Thu, Dec 20, 2001 at 10:32:43AM +0100, Markus Fischer wrote: Glad I didn't, its a bug in ext/imap. Due the pointer juggling we're accidantly calling fs_free() on something which was never explicetely malloced. I've a patch here which takes care of this but I'm not too familiar with imap code. Your patch looks sound enough, although I'm not very familiar with that code, either. I don't see any harm committing it to the HEAD branch. -- Jon Parise ([EMAIL PROTECTED]) . Information Technology (2001) http://www.csh.rit.edu/~jon/ : Computer Science House Member -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] PHP 4.0.6 IMAP BUG
Hi! If you try to run this lines: ? imap_mime_header_decode('[sisyphus] Re: ?KOI8-R?B?7s/X2cog0MHU3iDQxdLFy8/EydLP18vJIA==?==?KOI8-R?B?xMzR?= mc'); ? PHP will crash Rgds, Anton [EMAIL PROTECTED] http://www.altlinux.ru -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] PHP 4.0.6 IMAP BUG
Verified with latest CVS. No time do dig in right now, but note the crash occurs in the imap library: (gdb) bt #0 0x40113bee in free () from /lib/libc.so.6 #1 0x40113ac3 in free () from /lib/libc.so.6 #2 0x402b4063 in fs_give () from /usr/lib/libc-client.so.2001 #3 0x4028f699 in zif_imap_mime_header_decode () from /home/mfischer/php4/lib/php/extensions/debug-non-zts-20010901/imap.so #4 0x0813a1ba in execute (op_array=0x81bc244) at ./zend_execute.c:1598 #5 0x08113f69 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at zend.c:810 #6 0x08061481 in php_execute_script (primary_file=0xb504) at main.c:1308 #7 0x0805eccf in main (argc=3, argv=0xb594) at cgi_main.c:753 #8 0x400be65f in __libc_start_main () from /lib/libc.so.6 - Markus On Wed, Dec 19, 2001 at 06:35:11PM +0300, Kachalov Anton wrote : If you try to run this lines: ? imap_mime_header_decode('[sisyphus] Re: ?KOI8-R?B?7s/X2cog0MHU3iDQxdLFy8/EydLP18vJIA==?==?KOI8-R?B?xMzR?= mc'); ? PHP will crash Rgds, Anton [EMAIL PROTECTED] http://www.altlinux.ru -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Please always Cc to me when replying to me on the lists. -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] PHP 4.0.6 IMAP BUG
On Wed, Dec 19, 2001 at 05:35:53PM +0100, Markus Fischer wrote: Verified with latest CVS. No time do dig in right now, but note the crash occurs in the imap library: Please forward the test case and your backtrace to the c-client mailing list: http://www.washington.edu/imap/c-client-list.html -- Jon Parise ([EMAIL PROTECTED]) . Information Technology (2001) http://www.csh.rit.edu/~jon/ : Computer Science House Member -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]