imap_fetchbody() doesn't check message index
| Bug #29209 | imap_fetchbody() doesn't check message index | ||||
|---|---|---|---|---|---|
| Submitted: | 2004-07-16 14:13 UTC | Modified: | 2004-07-21 23:57 UTC | ||
| From: | tony2001 at phpclub dot net | Assigned: | |||
| Status: | Closed | Package: | IMAP related | ||
| PHP Version: | 5CVS-2004-07-16 (dev) | OS: | Irrelevant | ||
| Private report: | No | CVE-ID: | None | ||
[2004-07-16 14:13 UTC] tony2001 at phpclub dot net
Description: ------------ imap_fetchbody() doesn't check message index, causing PHP to segfault (in fact segfault happens in imap lib). patches to fix the problem can be found here: http://tony2004.phpclub.net/dev/tmp/imap_4_3.diff http://tony2004.phpclub.net/dev/tmp/imap_PHP_5.diff Reproduce code: --------------- <? $mbox = imap_open("{POP3_SERVER:110/pop3}INBOX", "LOGIN", "PASSWD"); $message = imap_fetchbody($mbox, 0, 4); ?> Expected result: ---------------- - Actual result: -------------- segfault
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2004-07-21 23:57 UTC] iliaa@php.net
[2004-08-12 20:58 UTC] crux at syktsu dot ru