Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-09 07:49:15

0001 #!/bin/bash -l 
0002 usage(){ cat << EOU
0003 sanitize_test.sh
0004 ===================
0005 
0006 
0007 https://github.com/google/sanitizers/wiki/AddressSanitizer
0008 
0009 If you want gdb to stop after asan has reported an error, set a breakpoint on  __sanitizer::Die 
0010 
0011 
0012 EOU
0013 }
0014 
0015 
0016 
0017 name=sanitize_test
0018 bin=/tmp/$name
0019 
0020 
0021 gcc $name.cc -fsanitize=address -O1 -fno-omit-frame-pointer -g -std=c++11 -lstdc++ -o $bin 
0022 
0023 BP=__sanitizer::Die dbg__ $bin
0024 
0025 
0026 
0027 
0028