commit | a278ed723bd2925852f304192f7bea8f7635852c | [log] [tgz] |
---|---|---|
author | Antonio Maiorano <amaiorano@google.com> | Wed Dec 04 22:14:21 2024 +0000 |
committer | Dawn LUCI CQ <dawn-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Dec 04 22:14:21 2024 +0000 |
tree | 2c1ab55aa2afb819cbc3eaf642bfe878adaf8148 | |
parent | 78142958b66d46369e72622e7f96241f2c7a0ae8 [diff] |
tint: fix memory leak in Command::LookPath on Windows `Command::LookPath` calls `ExecutableExists` which uses `MapViewOfFileEx` to check if the file is executable or not. But we were not calling `UnmapViewOfFile` on the returned address, so this would leak. LookPath in mainly called when looking for dxcompiler.dll, which we only do from the tint executable and the fuzzers. As the tint exe only processes one input at a time, we didn't notice this leak; but the fuzzers process multiple inputs, so the leak became obvious with the fuzzer crashing when OOM. Bug: 381549729 Change-Id: I99f8c75844a195458c91d49928eee41a15ea0307 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/218137 Reviewed-by: dan sinclair <dsinclair@chromium.org> Commit-Queue: Antonio Maiorano <amaiorano@google.com>
Dawn is an open-source and cross-platform implementation of the WebGPU standard. More precisely it implements webgpu.h
that is a one-to-one mapping with the WebGPU IDL. Dawn is meant to be integrated as part of a larger system and is the underlying implementation of WebGPU in Chromium.
Dawn provides several WebGPU building blocks:
webgpu.h
version that Dawn implements.webgpu.h
.Helpful links:
Developer documentation:
User documentation: (TODO, figure out what overlaps with the webgpu.h docs)
BSD 3-Clause License, please see LICENSE.
This is not an officially supported Google product.