From 4f93a8d47e48b75bed4de48afb1d5db7c1d9dc12 Mon Sep 17 00:00:00 2001 From: Austin Eng Date: Tue, 9 Feb 2021 20:29:23 +0000 Subject: [PATCH] Dawn wire fuzzer: Fix nullptr dereference Bug: chromium:1175535, chromium:1175448 Change-Id: I0a13412b43c8d285cf76c774befc98613aedd748 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/41243 Commit-Queue: Austin Eng Auto-Submit: Austin Eng Reviewed-by: Corentin Wallez --- src/fuzzers/DawnWireServerFuzzer.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/fuzzers/DawnWireServerFuzzer.cpp b/src/fuzzers/DawnWireServerFuzzer.cpp index d6cfe6264b..eee964946b 100644 --- a/src/fuzzers/DawnWireServerFuzzer.cpp +++ b/src/fuzzers/DawnWireServerFuzzer.cpp @@ -157,7 +157,6 @@ int DawnWireServerFuzzer::Run(const uint8_t* data, std::unique_ptr wireServer(new dawn_wire::WireServer(serverDesc)); wireServer->InjectDevice(device.Get(), 1, 0); - device = nullptr; // Server owns the device now. wireServer->HandleCommands(reinterpret_cast(data), size);