gpt4 book ai didi

address-sanitizer - 我应该使用哪些 AddressSanitizer 标志来检测更多错误?

转载 作者:行者123 更新时间:2023-12-03 23:56:20 27 4
gpt4 key购买 nike

我应该使用哪些 Asan 标志来检测更多错误?目前,我使用 ASAN_OPTIONS=detect_stack_use_after_return=1 .

最佳答案

来自 Asan FAQ :

Q: Can I run AddressSanitizer with more aggressive diagnostics enabled?

A: Yes! In particular you may want to enable

CFLAGS += -fsanitize-address-use-after-scope
ASAN_OPTIONS=strict_string_checks=1:detect_stack_use_after_return=1:check_initialization_order=1:strict_init_order=1

Check https://github.com/google/sanitizers/wiki/AddressSanitizerFlags for more details on this.

关于address-sanitizer - 我应该使用哪些 AddressSanitizer 标志来检测更多错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46148005/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com