diff options
| author | David Rubin <daviru007@icloud.com> | 2024-12-17 03:46:56 -0800 |
|---|---|---|
| committer | David Rubin <87927264+Rexicon226@users.noreply.github.com> | 2025-02-25 11:22:33 -0800 |
| commit | 5e0073c898b74f03f0c0e7f8cb859b9ac719bf43 (patch) | |
| tree | c93c341b84541d5a1d379bd479991b2cba11cf23 /src/Compilation.zig | |
| parent | e902c231c85890fdba486db3469e1aaf0de83da5 (diff) | |
| download | zig-5e0073c898b74f03f0c0e7f8cb859b9ac719bf43.tar.gz zig-5e0073c898b74f03f0c0e7f8cb859b9ac719bf43.zip | |
ubsan: add a basic runtime
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index bec6696c92..4d475f7754 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -5916,7 +5916,7 @@ pub fn addCCArgs( // These args have to be added after the `-fsanitize` arg or // they won't take effect. if (mod.sanitize_c) { - try argv.append("-fsanitize-trap=undefined"); + try argv.append("-fno-sanitize=vptr"); // 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 |
