Skip to content

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

Open
Akilan-Sivakumar wants to merge 2 commits into
Multicorewareinc:masterfrom
Akilan-Sivakumar:asan_ubsan
Open

fix: resolve UBSAN and ASAN reported undefined behavior and bugs#927
Akilan-Sivakumar wants to merge 2 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.

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.

1 participant