mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-27 21:34:14 +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…
x
Reference in New Issue
Block a user