asan插桩编译python需要注意

编译命令如下:

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

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

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

 

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

posted @ 2023-09-20 17:30  卧龙丹心  阅读(149)  评论(0)    收藏  举报