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:
parent
52e2b90919
commit
4f93a8d47e
|
@ -157,7 +157,6 @@ int DawnWireServerFuzzer::Run(const uint8_t* data,
|
|||
|
||||
std::unique_ptr<dawn_wire::WireServer> wireServer(new dawn_wire::WireServer(serverDesc));
|
||||
wireServer->InjectDevice(device.Get(), 1, 0);
|
||||
device = nullptr; // Server owns the device now.
|
||||
|
||||
wireServer->HandleCommands(reinterpret_cast<const char*>(data), size);
|
||||
|
||||
|
|
Loading…
Reference in New Issue