From 3adc9ef81a55f6193afcbe7a831c04e4dfdee264 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Tue, 18 Nov 2025 00:14:57 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- src/bun.js/bindings/Fuzzilli.cpp | 16 +++++++--------- src/bun.js/bindings/Fuzzilli.h | 1 - .../webcore/MessagePortChannelProviderImpl.cpp | 3 ++- src/cli/fuzzilli_command.zig | 9 ++++----- 4 files changed, 13 insertions(+), 16 deletions(-) diff --git a/src/bun.js/bindings/Fuzzilli.cpp b/src/bun.js/bindings/Fuzzilli.cpp index a898a34371..9557de262d 100644 --- a/src/bun.js/bindings/Fuzzilli.cpp +++ b/src/bun.js/bindings/Fuzzilli.cpp @@ -59,10 +59,10 @@ size_t Fuzzilli::numPendingRejectedPromises { 0 }; void Fuzzilli::resetCoverageEdges() { uint64_t n = 0; -WTF_ALLOW_UNSAFE_BUFFER_USAGE_BEGIN + WTF_ALLOW_UNSAFE_BUFFER_USAGE_BEGIN for (uint32_t* edge = edgesStart; edge < edgesStop && n < MAX_EDGES; edge++) *edge = ++n; -WTF_ALLOW_UNSAFE_BUFFER_USAGE_END + WTF_ALLOW_UNSAFE_BUFFER_USAGE_END } FilePrintStream& Fuzzilli::logFile() @@ -181,7 +181,7 @@ void Fuzzilli::initializeReprl() fprintf(stderr, "[FUZZILLI] Verifying HELO response\n"); fflush(stderr); - RELEASE_ASSERT_WITH_MESSAGE(equalSpans(std::span { helo } , "HELO"_span), "[REPRL] Invalid response from parent"); + RELEASE_ASSERT_WITH_MESSAGE(equalSpans(std::span { helo }, "HELO"_span), "[REPRL] Invalid response from parent"); fprintf(stderr, "[FUZZILLI] Mapping input buffer\n"); fflush(stderr); @@ -193,7 +193,6 @@ void Fuzzilli::initializeReprl() fflush(stderr); } - extern "C" void __sanitizer_cov_trace_pc_guard_init(uint32_t* start, uint32_t* stop); extern "C" void __sanitizer_cov_trace_pc_guard_init(uint32_t* start, uint32_t* stop) { @@ -218,9 +217,9 @@ extern "C" void __sanitizer_cov_trace_pc_guard(uint32_t* guard) // instrumentation ignores the first edge (see libcoverage.c) and so the race is unproblematic. uint32_t index = *guard; -WTF_ALLOW_UNSAFE_BUFFER_USAGE_BEGIN + WTF_ALLOW_UNSAFE_BUFFER_USAGE_BEGIN Fuzzilli::sharedData->edges[index / 8] |= 1 << (index % 8); -WTF_ALLOW_UNSAFE_BUFFER_USAGE_END + WTF_ALLOW_UNSAFE_BUFFER_USAGE_END *guard = 0; } @@ -279,8 +278,7 @@ void Fuzzilli::runReprl(JSC::JSGlobalObject* globalObject) JSC::SourceCode sourceCode = JSC::makeSource( sourceString, JSC::SourceOrigin { WTF::URL() }, - JSC::SourceTaintedOrigin::Untainted - ); + JSC::SourceTaintedOrigin::Untainted); NakedPtr exception; @@ -289,7 +287,7 @@ void Fuzzilli::runReprl(JSC::JSGlobalObject* globalObject) // Evaluate the code JSC::JSValue evalResult = JSC::evaluate(globalObject, sourceCode, - globalObject->globalThis(), exception); + globalObject->globalThis(), exception); fprintf(stderr, "[FUZZILLI] Loop iteration %d: handling result\n", iteration); fflush(stderr); diff --git a/src/bun.js/bindings/Fuzzilli.h b/src/bun.js/bindings/Fuzzilli.h index f88b09c511..ff199b0f69 100644 --- a/src/bun.js/bindings/Fuzzilli.h +++ b/src/bun.js/bindings/Fuzzilli.h @@ -60,5 +60,4 @@ void runReprl(JSC::JSGlobalObject* globalObject); namespace Fuzzilli { - } // namespace Fuzzilli diff --git a/src/bun.js/bindings/webcore/MessagePortChannelProviderImpl.cpp b/src/bun.js/bindings/webcore/MessagePortChannelProviderImpl.cpp index b025e0d2f3..093999a17d 100644 --- a/src/bun.js/bindings/webcore/MessagePortChannelProviderImpl.cpp +++ b/src/bun.js/bindings/webcore/MessagePortChannelProviderImpl.cpp @@ -35,7 +35,8 @@ namespace WebCore { MessagePortChannelProviderImpl::MessagePortChannelProviderImpl() = default; MessagePortChannelProviderImpl::~MessagePortChannelProviderImpl() -{ } +{ +} void MessagePortChannelProviderImpl::createNewMessagePortChannel(const MessagePortIdentifier& local, const MessagePortIdentifier& remote) { diff --git a/src/cli/fuzzilli_command.zig b/src/cli/fuzzilli_command.zig index 2e08d310c1..3e59a9059b 100644 --- a/src/cli/fuzzilli_command.zig +++ b/src/cli/fuzzilli_command.zig @@ -1,10 +1,5 @@ -const std = @import("std"); -const bun = @import("bun"); - extern "c" fn Fuzzilli__runReprl(globalObject: *bun.jsc.JSGlobalObject) void; -const Run = bun.bun_js.Run; - pub const FuzzilliCommand = struct { pub fn exec(ctx: bun.cli.Command.Context) !void { bun.Output.prettyErrorln("[ZIG] FuzzilliCommand.exec() starting", .{}); @@ -69,3 +64,7 @@ pub const FuzzilliCommand = struct { return result != -1; } }; + +const bun = @import("bun"); +const std = @import("std"); +const Run = bun.bun_js.Run;