|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3102 Buffer overflow with rfc822_date
Submitted: 2000-01-04 17:01 UTC Modified: 2000-02-29 10:50 UTC
From: sherin at simmcomm dot ch Assigned:
Status: Closed Package: IMAP related
PHP Version: 3.0.13 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: sherin at simmcomm dot ch
New email:
PHP Version: OS:


 [2000-01-04 17:01 UTC] sherin at simmcomm dot ch
A buffer overflow occured in the function php3_imap_check in functions/imap.c while executing the following command:

rfc822_date (date);

The problem with this is that it is not checked if the returned date string is too long for the buffer. In my configuration i didn`t set up the timezone correct, so I got a somewhat large date string back.:

"Tue, 4 Jan 2000 15:42:40 +0000 (Local time zone must be set--see zic manual page)"

which was larger than the 50 chars allocated for the variable date could handle. I assume there are also other places where this problem occurs.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-02-29 10:50 UTC] hholzgra at cvs dot php dot net
bufsizes have been increased from 50 to 100
(lets hope its big enough now)
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sat Jan 22 17:03:34 2022 UTC