KhronosGroup / KhronosGroup/SPIRV-Reflect
Undefined sanitizers bugs
- Dominant language
- C
- Stars
- 871
- Forks
- 188
- Avg merge
- 19m
- Merged PRs (30d)
- 1
Description
```
thirdparty/spirv-reflect/spirv_reflect.c:293:37: runtime error: applying zero offset to null pointer
thirdparty/spirv-reflect/spirv_reflect.c:2205:19: runtime error: implicit conversion from type 'int' of value -2 (32-bit, signed) to type 'unsigned int' changed the value to 4294967294 (32-bit, unsigned)
```
not sure about reproduction steps
https://github.com/KhronosGroup/SPIRV-Reflect/blob/4bfcf153ad93ab430006ed454de2c2f0638b3c8e/spirv_reflect.c#L293
https://github.com/KhronosGroup/SPIRV-Reflect/blob/4bfcf153ad93ab430006ed454de2c2f0638b3c8e/spirv_reflect.c#L2205
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by inspecting thirdparty/spirv-reflect/spirv_reflect.c at lines 293 and 2205, then determine how to reproduce the reported sanitizer diagnostics since the issue provides no reproduction steps. Run the relevant sanitizer configuration against a reproducing input; done means both reported diagnostics are resolved and the sanitizer run is clean.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100