TripleDoggy
TripleDoggy copied to clipboard
基于clang static analyzer的源码漏洞检测插件
[MemFuncsIdentification.h](https://github.com/GoSSIP-SJTU/TripleDoggy/blob/master/tools/clang/lib/StaticAnalyzer/Checkers/MemFuncsIdentification.h)中有4个宏定义 ``` #define MEM_ALLOC_CONFIG_FILENAME "/home/loccs/memallocfuncs.txt" #define MEM_FREE_CONFIG_FILENAME "/home/loccs/memfreefuncs.txt" #define MEM_REALLOC_CONFIG_FILENAME "/home/loccs/memreallocfuncs.txt" #define MEM_LOGFILENAME "/home/loccs/log.txt" ``` 方便给出下这4个txt文件的内容吗?我怕我找的有遗漏。能给的话感激不尽
` ./build/bin/clang -cc1-analyze-analyzer-checker=alpha.unix.NewDereference ./llvm/tripledoggy_test/nulldereference.c` 少了两个空格 ` ./build/bin/clang -cc1 -analyze -analyzer-checker=alpha.unix.NewDereference ./llvm/tripledoggy_test/nulldereference.c `
编译TripleDoggy时,报如下错误 
请问你的预处理有没有对源代码进行宏扩展?
* Hello, I am compiling according to your steps, but the following error occurs at runtime: ``` ck01@ck01-VirtualBox:~/clang$ ./build/bin/clang -cc1-analyze-analyzer-checker=alpha.unix.NewDereference ./llvm/tripledoggy_test/nulldereference.c bash: ./build/bin/clang: No such file or directory ```
编译不过 会报错
执行完make 后报错 
./build/bin/clang -cc1 -analyze -analyzer-checker=alpha.unix.NewDereference ./llvm/tripledoggy_test/nulldereference.c ./llvm/tripledoggy_test/nulldereference.c:2:9: fatal error: 'stdio.h' file not found #include ^~~~~~~~~ 1 error generated.