Fix #4558: Crash on loading invalid scenario

This commit is contained in:
Michał Janiszewski authored and Ted John committed 2016-10-08 21:23:03 +01:00
1 parent 952c412334
commit 3c4a683701
5 files changed
+14 -51

No files matched your search

+1 -1
View File
@@ -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)
{