1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-04 13:42:55 +01:00

Fix #10036: Do not allocate large chunks of memory for save file classification (#10040)

This commit is contained in:
ζeh Matt
2019-10-03 17:36:58 +02:00
committed by Michael Steenbeek
parent 272fc929d1
commit a39bd39268
2 changed files with 4 additions and 0 deletions

View File

@@ -24,6 +24,7 @@
- Fix: [#9957] When using 'no money' cheat, guests complain of running out of cash.
- Fix: [#9970] Wait for quarter load fails.
- Fix: [#10017] Ghost elements influencing ride excitement.
- Fix: [#10036] Do not allocate large chunks of memory for save file classification.
- Improved: [#9466] Add the rain weather effect to the OpenGL renderer.
- Improved: [#9987] Minimum load rounding.

View File

@@ -68,6 +68,9 @@ std::shared_ptr<SawyerChunk> SawyerChunkReader::ReadChunk()
try
{
auto header = _stream->ReadValue<sawyercoding_chunk_header>();
if (header.length >= MAX_UNCOMPRESSED_CHUNK_SIZE)
throw SawyerChunkException(EXCEPTION_MSG_CORRUPT_CHUNK_SIZE);
switch (header.encoding)
{
case CHUNK_ENCODING_NONE: