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 <enga@chromium.org>
Auto-Submit: Austin Eng <enga@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
Austin Eng 2021-02-09 20:29:23 +00:00 committed by Commit Bot service account
parent 52e2b90919
commit 4f93a8d47e
1 changed files with 0 additions and 1 deletions

View File

@ -157,7 +157,6 @@ int DawnWireServerFuzzer::Run(const uint8_t* data,
std::unique_ptr<dawn_wire::WireServer> wireServer(new dawn_wire::WireServer(serverDesc)); std::unique_ptr<dawn_wire::WireServer> wireServer(new dawn_wire::WireServer(serverDesc));
wireServer->InjectDevice(device.Get(), 1, 0); wireServer->InjectDevice(device.Get(), 1, 0);
device = nullptr; // Server owns the device now.
wireServer->HandleCommands(reinterpret_cast<const char*>(data), size); wireServer->HandleCommands(reinterpret_cast<const char*>(data), size);