tinyUBSan is a tiny libUBSan implementation for freestanding targets
it is recommended to either add tinyubsan.c to your build system or #include it.
The macro TINYUBSAN_PRINT is expected to be defined and should be a function that accepts printf-like formatting.
The macro TINYUBSAN_TRAP can be defined to trap on errors.