mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 21:10:42 +00:00
Don't look up offset in serialised data as it's already been applied
* Fixes a crash reading off the end of the serialised buffer
This commit is contained in:
@@ -731,7 +731,7 @@ bool WrappedVulkan::Serialise_vkFlushMappedMemoryRanges(Serialiser *localSeriali
|
||||
|
||||
byte *serialisedData = localSerialiser->GetRawPtr(offs);
|
||||
|
||||
memcpy(state->refData, serialisedData + (size_t)memOffset, (size_t)memSize);
|
||||
memcpy(state->refData, serialisedData, (size_t)memSize);
|
||||
}
|
||||
|
||||
if(m_State < WRITING)
|
||||
|
||||
Reference in New Issue
Block a user