Last active
November 4, 2022 12:49
-
-
Save adetaylor/74ee9e0354f701849635dd4dd40cbacb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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