KhronosGroup / KhronosGroup/SPIRV-Tools

spirv-reduce: UNKNOWN READ in RemoveUnusedStructMemberReductionOpportunityFinder::MarkAccessedMembersAsUsed

Open
#4,426 0 comments 0 reactions 1 assignee Claimed by @afd View on GitHub
component:reducer
Dominant language
C++
Stars
1.4k
Forks
709
Avg merge
1d 22h
Merged PRs (30d)
28

Description

A ClusterFuzz bug gives this stack trace:

```
#0 0x5644cabd2f4c in spvtools::opt::Instruction::GetSingleWordOperand(unsigned int) const third_party/vulkan-deps/spirv-tools/src/source/opt/instruction.cpp:163:16
--
  | #1 0x5644ca7fa327 in spvtools::opt::Instruction::GetSingleWordInOperand(unsigned int) const third_party/vulkan-deps/spirv-tools/src/source/opt/instruction.h:337:12
  | #2 0x5644cb4a3c89 in spvtools::reduce::RemoveUnusedStructMemberReductionOpportunityFinder::MarkAccessedMembersAsUsed(spvtools::opt::IRContext*, unsigned int, unsigned int, bool, spvtools::opt::Instruction const&, std::__1::map, std::__1::allocator >, std::__1::less, std::__1::allocator, std::__1::allocator > > > >*) const third_party/vulkan-deps/spirv-tools/src/source/reduce/remove_unused_struct_member_reduction_opportunity_finder.cpp:0:32
  | #3 0x5644cb4a30e5 in spvtools::reduce::RemoveUnusedStructMemberReductionOpportunityFinder::GetAvailableOpportunities(spvtools::opt::IRContext*, unsigned int) const third_party/vulkan-deps/spirv-tools/src/source/reduce/remove_unused_struct_member_reduction_opportunity_finder.cpp:0
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.