mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-16 04:05:58 +00:00
floIcon: set cap on image size
This commit is contained in:
@@ -780,6 +780,10 @@ 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"]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user