I don't know if this is the bug that the valvesoftware wiki mentions, but I have experienced memory corruption and segfaults (in other source games) from this bug.
Basically, the AppendIncludedKeys function appends the included KeyValues directly, without reallocating. Then, the included KeyValues are freed, while in use.
This commit removes the free.
I don't know if this is the bug that the valvesoftware wiki mentions, but I have experienced memory corruption and segfaults (in other source games) from this bug.
Basically, the
AppendIncludedKeys
function appends the includedKeyValues
directly, without reallocating. Then, the included KeyValues are freed, while in use. This commit removes the free.