TripleDoggy icon indicating copy to clipboard operation
TripleDoggy copied to clipboard

基于clang static analyzer的源码漏洞检测插件

Results 7 TripleDoggy issues
Sort by recently updated
recently updated
newest added

[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时,报如下错误 ![default](https://user-images.githubusercontent.com/13652947/51902885-012a7f00-23f6-11e9-8f17-218a0e44df39.png)

请问你的预处理有没有对源代码进行宏扩展?

* 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 后报错 ![image](https://github.com/GoSSIP-SJTU/TripleDoggy/assets/24492495/2077be51-9db2-4544-89cc-61fdf3b15c0d)

./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.