[Tickets #13067] Re: PHP Error to view emails IMP (Interger overflow)
noreply at bugs.horde.org
noreply at bugs.horde.org
Mon Mar 31 21:12:09 UTC 2014
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/13067
------------------------------------------------------------------------------
Ticket | 13067
Updated By | Michael Slusarz <slusarz at horde.org>
Summary | PHP Error to view emails IMP (Interger overflow)
Queue | IMP
Version | 6.1.6
Type | Bug
State | Feedback
Priority | 1. Low
Milestone |
Patch |
Owners |
------------------------------------------------------------------------------
Michael Slusarz <slusarz at horde.org> (2014-03-31 15:12) wrote:
> The problem has been temporarily solved by changing the line 402 of
> Stream.php file.
>
> $read = fread($this->stream, $to_end ? 16384 : $length); --->
> $read = fread($this->stream, true);
Yikes. That is a terrible idea. That could potentially read the
ENTIRE stream. That is not what it is needed, since the whole point
of the function is only to read a *portion* of the stream.
Not to mention true is not a valid second argument to fread() -- it
must be an integer.
More information about the bugs
mailing list