asan插桩编译python需要注意
编译命令如下:
./configure --with-address-sanitizer --without-pymalloc
编译过程中需设置环境变量:
export ASAN_OPTIONS='detect_leaks=0:allocator_may_return_null=1:handle_segv=0'
如果不去这样编译和设置就会产生内存泄漏导致没法进行模糊测试
编译命令如下:
编译过程中需设置环境变量:
export ASAN_OPTIONS='detect_leaks=0:allocator_may_return_null=1:handle_segv=0'
如果不去这样编译和设置就会产生内存泄漏导致没法进行模糊测试