mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Return after detecting an error instead of continuing in lz4 decode
This commit is contained in:
@@ -286,6 +286,7 @@ bool LZ4Decompressor::FillPage0()
|
||||
SET_ERROR_RESULT(m_Error, ResultCode::CompressionFailed,
|
||||
"LZ4 decompression encountered invalid compressed block size: %i", compSize);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
success &= m_Read->Read(m_CompressBuffer, compSize);
|
||||
|
||||
Reference in New Issue
Block a user