Files
zig/src
Andrew Kelley 66312c0b51 clang: -fno-sanitize=function workaround
It is very common, and well-defined, for a pointer on one side of a C ABI
to have a different but compatible element type. Examples include:

- `char*` vs `uint8_t*` on a system with 8-bit bytes
- `const char*` vs `char*`
- `char*` vs `unsigned char*`

Without this flag, Clang would invoke UBSAN when such an extern
function was called.

Might be nice to file an upstream issue and find out if there is a more
precise way to disable the problematic check.
`-fsanitize-cfi-icall-generalize-pointers` looks promising according to
the documentation, but empirically it does not work.
2023-09-19 09:37:53 -07:00
..
2023-09-19 09:37:31 -07:00
2023-06-20 12:55:38 -04:00
2023-08-15 02:52:38 -07:00
2023-07-18 19:02:05 -07:00
2023-09-19 09:37:30 -07:00