mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-12-24 00:40:14 +00:00
spirv-fuzz: Pass on validator options during shrinking (#3317)
Fixes an issue where the shrinker's validator options were not actually being passed to the validator.
This commit is contained in:
parent
88faf63ad3
commit
94d6002dc5
@ -107,7 +107,8 @@ Shrinker::ShrinkerResultStatus Shrinker::Run(
|
||||
}
|
||||
|
||||
// Initial binary should be valid.
|
||||
if (!tools.Validate(&binary_in[0], binary_in.size())) {
|
||||
if (!tools.Validate(&binary_in[0], binary_in.size(),
|
||||
impl_->validator_options)) {
|
||||
impl_->consumer(SPV_MSG_INFO, nullptr, {},
|
||||
"Initial binary is invalid; stopping.");
|
||||
return Shrinker::ShrinkerResultStatus::kInitialBinaryInvalid;
|
||||
|
Loading…
Reference in New Issue
Block a user