asan插桩编译python需要注意

发布时间 2023-09-20 17:39:19作者: 卧龙丹心

编译命令如下:

 ./configure --with-address-sanitizer --without-pymalloc

编译过程中需设置环境变量:

 export ASAN_OPTIONS='detect_leaks=0:allocator_may_return_null=1:handle_segv=0'

 

如果不去这样编译和设置就会产生内存泄漏导致没法进行模糊测试