mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
If invalid valid value, set valid to false
This is just to prevent parsing potentially garbage data, because some of the code relies on the `valid` value being valid.
This commit is contained in:
@@ -103,6 +103,7 @@ bool binaryBlob::unPackBinary(const char* name)
|
||||
|
||||
if (m_headers[i].valid & ~0x1 || !m_headers[i].valid)
|
||||
{
|
||||
m_headers[i].valid = false;
|
||||
continue; /* Must be EXACTLY 1 or 0 */
|
||||
}
|
||||
if (m_headers[i].size < 1)
|
||||
|
||||
Reference in New Issue
Block a user