mirror of
https://github.com/thunderbrewhq/system.git
synced 2026-02-03 16:39:07 +00:00
feat(system): add abbreviations WHOA_UNSAFE and WHOA_UNSAFE_BOUNDS to disable UBsan entirely or disable automatic bounds checking respectively
This commit is contained in:
parent
8eba4c3ff0
commit
d5b14bb96b
1 changed files with 10 additions and 0 deletions
10
system/Unsafe.hpp
Normal file
10
system/Unsafe.hpp
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
#ifndef SYSTEM_UNSAFE_HPP
|
||||||
|
#define SYSTEM_UNSAFE_HPP
|
||||||
|
|
||||||
|
// Abbreviations to disable the UndefinedBehaviorSanitizer
|
||||||
|
|
||||||
|
#define WHOA_UNSAFE __attribute__((no_sanitize("undefined")))
|
||||||
|
|
||||||
|
#define WHOA_UNSAFE_BOUNDS __attribute__((no_sanitize("bounds")))
|
||||||
|
|
||||||
|
#endif
|
||||||
Loading…
Add table
Add a link
Reference in a new issue