Thanks for the advice.
PS2: Haven't used C/C++ in our tech stack for quite a while now but from what I see it should work if you provide the relevant switch '-fsanitize=undefined' plus a gcc version that supports Undefined Behavior Sanitizer (gcc 4.9 and later).