Skip to content
This repository was archived by the owner on Nov 24, 2021. It is now read-only.

Conversation

@Nopey
Copy link

@Nopey Nopey commented May 23, 2020

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](https://developer.valvesoftware.com/wiki/KeyValues#About_KeyValues_Text_File_Format:), but I have experienced memory corruption and segfaults (in other source games) from this bug.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant