1
0
Fork 0

(svn r24754) -Fix [FS#5367]: crash on corrupted savegame

release/1.3
rubidium 2012-11-18 16:14:31 +00:00
parent fe1079cfc6
commit 3a40a0f1e8
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
};