Skip to content

Instantly share code, notes, and snippets.

@adetaylor
Last active November 4, 2022 12:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adetaylor/74ee9e0354f701849635dd4dd40cbacb to your computer and use it in GitHub Desktop.
Save adetaylor/74ee9e0354f701849635dd4dd40cbacb to your computer and use it in GitHub Desktop.
TEST(ValuesTest, UseAfterFree) {
Value parent(Value::Type::LIST);
parent.GetList().Append(Value(Value::Type::LIST));
Value& child = parent.GetList().back();
parent.Append("oops");
child.Append("oh dear");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment