mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-13 07:10:57 +00:00
(svn r24754) -Fix [FS#5367]: crash on corrupted savegame
This commit is contained in:
parent
751a3bc7fb
commit
d2b2e20818
@ -1913,7 +1913,7 @@ struct LZOLoadFilter : LoadFilter {
|
||||
if (tmp[0] != lzo_adler32(0, out, size + sizeof(uint32))) SlErrorCorrupt("Bad checksum");
|
||||
|
||||
/* Decompress */
|
||||
lzo1x_decompress(out + sizeof(uint32) * 1, size, buf, &len, NULL);
|
||||
lzo1x_decompress_safe(out + sizeof(uint32) * 1, size, buf, &len, NULL);
|
||||
return len;
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user