mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-10 14:08:04 +00:00
Adding fuzzing for Transforms
Fuzz all transforms being applied together, and fuzz each transform separately. BUG=tint:436 Change-Id: I53cf2e05c69f495f27bfa428f55ec033a85a612a Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/36945 Commit-Queue: Ryan Harrison <rharrison@chromium.org> Auto-Submit: Ryan Harrison <rharrison@chromium.org> Reviewed-by: David Neto <dneto@google.com> Reviewed-by: dan sinclair <dsinclair@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
39545b7e7c
commit
4a29008c7e
@@ -87,6 +87,15 @@ int CommonFuzzer::Run(const uint8_t* data, size_t size) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (transform_manager_) {
|
||||
auto out = transform_manager_->Run(&mod);
|
||||
if (out.diagnostics.contains_errors()) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
mod = std::move(out.module);
|
||||
}
|
||||
|
||||
std::unique_ptr<tint::writer::Writer> writer;
|
||||
|
||||
switch (output_) {
|
||||
|
||||
Reference in New Issue
Block a user