mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 06:53:58 +00:00
- Fixed: 2048 should be a valid height for a Doom patch.
SVN r3310 (trunk)
This commit is contained in:
parent
4816b3182b
commit
e68d956208
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ static bool CheckIfPatch(FileReader & file)
|
|||
int height = LittleShort(foo->height);
|
||||
int width = LittleShort(foo->width);
|
||||
|
||||
if (height > 0 && height < 2048 && width > 0 && width <= 2048 && width < file.GetLength()/4)
|
||||
if (height > 0 && height <= 2048 && width > 0 && width <= 2048 && width < file.GetLength()/4)
|
||||
{
|
||||
// The dimensions seem like they might be valid for a patch, so
|
||||
// check the column directory for extra security. At least one
|
||||
|
|
Loading…
Reference in a new issue