Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
build: Fix remaining curly-bracket notation.
  • Loading branch information
DavidKorczynski committed Aug 20, 2020
commit 9735bfbe8db89bff8206150f00736ad1ed0b1454
12 changes: 4 additions & 8 deletions test/fuzzers/fuzz_env.cc
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,13 @@ class FuzzerFixtureHelper {

FuzzerFixtureHelper()
: allocator(ArrayBufferUniquePtr(node::CreateArrayBufferAllocator(),
&node::FreeArrayBufferAllocator))
{
&node::FreeArrayBufferAllocator)) {
isolate_ = NewIsolate(allocator.get(), &current_loop, platform.get());
CHECK_NOT_NULL(isolate_);
isolate_->Enter();
};

void Teardown()
{
void Teardown() {
platform->DrainTasks(isolate_);
isolate_->Exit();
platform->UnregisterIsolate(isolate_);
Expand All @@ -72,8 +70,7 @@ class FuzzerFixtureHelper {
}
};

void EnvTest(v8::Isolate* isolate_, char* env_string)
{
void EnvTest(v8::Isolate* isolate_, char* env_string) {
const v8::HandleScope handle_scope(isolate_);
Argv argv;

Expand All @@ -100,8 +97,7 @@ void EnvTest(v8::Isolate* isolate_, char* env_string)
context_->Exit();
}
Comment thread
bnoordhuis marked this conversation as resolved.
Resolved

extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data2, size_t size)
{
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data2, size_t size) {
FuzzerFixtureHelper ffh;
std::string s(reinterpret_cast<const char*>(data2), size);
EnvTest(ffh.isolate_, s.c_str());
Expand Down