mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-27 07:34:00 +08:00
(BMP): ignore incorrect length in bitmap header.
This commit is contained in:
parent
3732d8bb5d
commit
babe2d93d7
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user