Revert "floIcon: set cap on image size"

This reverts commit cb50799560.
This commit is contained in:
Andrew Dolgov 2013-04-17 01:17:06 +04:00
parent cb50799560
commit 05a46342a4
1 changed files with 5 additions and 9 deletions

View File

@ -780,10 +780,6 @@ class floIconImage {
$this->_entryIconFormat = fread($filePointer, 16); $this->_entryIconFormat = fread($filePointer, 16);
$this->_entry = unpack("CWidth/CHeight/CColorCount/CReserved/SPlanes/SBitCount/LSizeInBytes/LFileOffset", $this->_entryIconFormat); $this->_entry = unpack("CWidth/CHeight/CColorCount/CReserved/SPlanes/SBitCount/LSizeInBytes/LFileOffset", $this->_entryIconFormat);
// fox
if ($this->_entry["SizeInBytes"] > 16384)
$this->_entry["SizeInBytes"] = 16384;
// Position the file pointer. // Position the file pointer.
fseek($filePointer, $this->_entry["FileOffset"]); fseek($filePointer, $this->_entry["FileOffset"]);