Open GoogleCodeExporter opened 9 years ago
Related to this, I added the following to Reader.php to prevent memory
allocation crashes
when things do somehow get out of sync. This allows the calling program to
catch the error
and recover in whatever way is appropriate...
public function read($length)
{
// SSP: Added sanity check
if ($length > 65535) {
require_once('Zend/Io/Exception.php');
throw new Zend_Io_Exception("Unable to read more than 65535 bytes, $length requested.");
}
...
Original comment by stephen....@gmail.com
on 17 Apr 2015 at 5:21
Original issue reported on code.google.com by
stephen....@gmail.com
on 16 Apr 2015 at 8:50