diff options
author | rubidium <rubidium@openttd.org> | 2012-11-18 16:14:31 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2012-11-18 16:14:31 +0000 |
commit | 3a40a0f1e8c3b3f894f4f2e58cc86f61731150e4 (patch) | |
tree | 80cb1203f9c90c2c3d74290c7cf20a8dd26e8ce3 /src/saveload | |
parent | fe1079cfc6a26983dbb236647972c6ce6f9e7322 (diff) | |
download | openttd-3a40a0f1e8c3b3f894f4f2e58cc86f61731150e4.tar.xz |
(svn r24754) -Fix [FS#5367]: crash on corrupted savegame
Diffstat (limited to 'src/saveload')
-rw-r--r-- | src/saveload/saveload.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saveload/saveload.cpp b/src/saveload/saveload.cpp index 625a106ff..4925e51d5 100644 --- a/src/saveload/saveload.cpp +++ b/src/saveload/saveload.cpp @@ -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; } }; |