From 9d9347cd5aec545ad5c0f48cc637ca3e13970808 Mon Sep 17 00:00:00 2001 From: AnotherTest Date: Thu, 3 Dec 2020 12:33:06 +0330 Subject: [PATCH] Shell: Fix bad cast to BarewordLiteral As found by oss-fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=28109&q=label%3AProj-serenity --- Shell/Parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shell/Parser.cpp b/Shell/Parser.cpp index e3c43c0ed4..c6b322755c 100644 --- a/Shell/Parser.cpp +++ b/Shell/Parser.cpp @@ -1380,7 +1380,7 @@ RefPtr Parser::parse_glob() auto glob_after = parse_glob(); if (glob_after) { if (glob_after->is_glob()) { - auto glob = static_cast(glob_after.ptr()); + auto glob = static_cast(glob_after.ptr()); textbuilder.append(glob->text()); } else if (glob_after->is_bareword()) { auto bareword = static_cast(glob_after.ptr());