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