Run sanitizers in CI
ChrisThrasher opened this issue · 0 comments
ChrisThrasher commented
Prerequisite Checklist
- I searched for existing issues to prevent duplicates
- I searched for existing discussions on the forum to prevent duplicates
- I understand SFML's scope and believe the feature fits it
Describe your feature request here
Runtime sanitizers like Address Sanitizer (ASan) and Undefined Behavior Santizer (UBSan) are incredibly power tools for finding bugs in SFML. I've experimented with Address Sanitizer before but we get failures within OpenGL drivers which we can't fix so that sanitizer may be unreasonable to use. UBSan seems less affected by driver issues so it may be feasible to run in CI.
I think the sanitizers will become their own separate CI job and we'll run them on as many codepaths as possible. Because it requires running the tests that rules out using them on mobile OS codepaths.
Use Cases
Detecting division by zero or illegal shift operations in SFML.
API Example
No response