My practice of sanitizers. Example code of sanitizers are taken from:
1、https://github.com/llvm/llvm-project/tree/main/compiler-rt/test
2、https://docs.microsoft.com/en-us/cpp/sanitizers/asan?view=msvc-170
3、https://blog.gypsyengineer.com/en/security/global-buffer-overflows.html
4、https://github.com/google/sanitizers/wiki
以下是验证
OS | compiler | CPU |
---|---|---|
windows | Microsoft Visual Studio Professional 2022 (64 位) - Preview 版本 17.2.0 Preview 4.0 | x64 |
Linux | gcc (Ubuntu 11.2.0-7ubuntu2) 11.2.0 | x64 |
macOS | clang 13.1.6 arm64-apple-darwin21.3.0 | Apple M1 pro |
编译器能力整理