forked from rosebudai/OpenRCT2-Web
Fix #4558: Crash on loading invalid scenario
This commit is contained in:
1 parent
952c412334
commit
3c4a683701
5 files changed
+14
-51
No files matched your search
@@ -800,7 +800,7 @@ extern "C"
|
||||
return 0;
|
||||
}
|
||||
|
||||
size_t chunkSize = sawyercoding_read_chunk(rw, chunk);
|
||||
size_t chunkSize = sawyercoding_read_chunk_with_size(rw, chunk, 0x600000);
|
||||
chunk = Memory::Reallocate(chunk, chunkSize);
|
||||
if (chunk == nullptr)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user