From ed39250b75be303775b5bc18f889a5defec2fb31 Mon Sep 17 00:00:00 2001 From: JohnnyMorganz Date: Fri, 9 Jun 2023 20:30:53 +0100 Subject: [PATCH] Fix test UAF --- tests/Parser.test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Parser.test.cpp b/tests/Parser.test.cpp index 748fe830..a8738ac8 100644 --- a/tests/Parser.test.cpp +++ b/tests/Parser.test.cpp @@ -1919,7 +1919,7 @@ TEST_CASE_FIXTURE(Fixture, "class_indexer") AstStatDeclareClass* klass = p1.root->body.data[0]->as(); REQUIRE(klass != nullptr); - CHECK(declaredClass->indexer); + CHECK(klass->indexer); } TEST_CASE_FIXTURE(Fixture, "parse_variadics")