Skip to content

fix: resolve UBSAN and ASAN reported undefined behavior and bugs - #927

Merged
kirithika7 merged 4 commits into
Multicorewareinc:masterfrom
Akilan-Sivakumar:asan_ubsan
Jul 28, 2026
Merged

fix: resolve UBSAN and ASAN reported undefined behavior and bugs#927
kirithika7 merged 4 commits into
Multicorewareinc:masterfrom
Akilan-Sivakumar:asan_ubsan

Conversation

@Akilan-Sivakumar

Copy link
Copy Markdown
Collaborator
  • Fixed signed left-shift undefined behavior reported by UBSAN.
  • Replaced unsafe function-pointer casts in the HIGH_BIT_DEPTH primitive aliasing with safe trampolines that only reinterpret data pointers.
  • Added guards for out-of-bounds access, division-by-zero, and uninitialized/stale reads flagged by ASAN.
  • Fixed a TestBench segfault at high bit depth caused by the new alias trampolines.

@kirithika7
kirithika7 merged commit d0430cb into Multicorewareinc:master Jul 28, 2026
14 of 29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants