From 5a1ac851aa4a8a6b4764cb019b9ed24975bd55c2 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Wed, 18 Jan 2023 07:39:51 -0500 Subject: [PATCH] FuzzilliJs: Print the result of JS::Value::to_string using AK::outln JS::Value::to_string now returns a String, which does not have a null- terminated characters() accessor. --- Meta/Lagom/Fuzzers/FuzzilliJs.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Meta/Lagom/Fuzzers/FuzzilliJs.cpp b/Meta/Lagom/Fuzzers/FuzzilliJs.cpp index 423484ad828..d8077d4da15 100644 --- a/Meta/Lagom/Fuzzers/FuzzilliJs.cpp +++ b/Meta/Lagom/Fuzzers/FuzzilliJs.cpp @@ -5,6 +5,7 @@ */ #include +#include #include #include #include @@ -160,7 +161,7 @@ JS_DEFINE_NATIVE_FUNCTION(TestRunnerGlobalObject::fuzzilli) } auto string = TRY(vm.argument(1).to_string(vm)); - fprintf(fzliout, "%s\n", string.characters()); + outln(fzliout, "{}", string); fflush(fzliout); }