Bug #12555 Updated: imap_body on empty messages causes seg fault

From: Date: Mon, 06 Aug 2001 11:51:15 +0000
Subject: Bug #12555 Updated: imap_body on empty messages causes seg fault
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-62233@lists.php.net to get a copy of this message
ID: 12555 Updated by: sniper Reported By: jon@cmoo.com Old Status: Open Status: Feedback Bug Type: IMAP related Operating System: Linux PHP Version: 4.0.6 New Comment: I can not reproduce this with PHP 4.0.6. With which c-client version is your PHP linked with? --Jani Previous Comments: ------------------------------------------------------------------------ [2001-08-03 12:08:10] jon@cmoo.com After opening an imap connection, calling imap_body for a message which is has an empty body will cause the apache server to seg fault (11). This caused several problems as on some of our accounts the first message was empty (for other reasons) and so any php imap client would fail immediately on loading. We have fixed this by testing for message size - but the imap_body code should probably spot this. Thanks, Jon. ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=12555&edit=1

« previous php.dev (#62233) next »