gossip-sjtu / tripledoggy Goto Github PK
View Code? Open in Web Editor NEW基于clang static analyzer的源码漏洞检测插件
License: Apache License 2.0
基于clang static analyzer的源码漏洞检测插件
License: Apache License 2.0
./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
I guess the clang repo is missing, which should located in tools/clang....
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
请问你的预处理有没有对源代码进行宏扩展?
./build/bin/clang -cc1 -analyze -analyzer-checker=alpha.unix.NewDereference ./llvm/tripledoggy_test/nulldereference.c
clang -cc1 version 7.0.0 based upon LLVM 7.0.0svn default target x86_64-unknown-linux-gnu
#include "..." search starts here:
End of search list.
./llvm/tripledoggy_test/nulldereference.c:1:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
^~~~~~~~~
1 error generated.
move the -G option after "-DCMAKE_BUILD_TYPE=Release" works for me.
cmake -DCMAKE_BUILD_TYPE=Release -G "Unix Makefiles" ../llvm
添加了include路径options运行同样报错
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文件的内容吗?我怕我找的有遗漏。能给的话感激不尽
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.