mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
(BMP): ignore incorrect length in bitmap header.
This commit is contained in:
@@ -124,6 +124,11 @@ namespace GameRes
|
|||||||
return null;
|
return null;
|
||||||
size = (uint)file.Length;
|
size = (uint)file.Length;
|
||||||
}
|
}
|
||||||
|
else if (file.AsStream.CanSeek)
|
||||||
|
{
|
||||||
|
if (size > file.Length)
|
||||||
|
size = (uint)file.Length;
|
||||||
|
}
|
||||||
uint width, height;
|
uint width, height;
|
||||||
if (0xC == header_size)
|
if (0xC == header_size)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user