AFL fuzzing harness

This commit is contained in:
flamingcow
2019-05-04 19:00:16 -07:00
parent 9c91efb3db
commit 76271628e7
7 changed files with 70 additions and 21 deletions

16
fastcgi_conn_afl.cc Normal file
View File

@@ -0,0 +1,16 @@
#include "fastcgi_conn.h"
int main(int argc, char* argv[]) {
setenv("GLOG_logtostderr", "1", true);
google::InitGoogleLogging(argv[0]);
{
FastCGIConn conn(STDIN_FILENO, {}, [](std::unique_ptr<FastCGIRequest> req) { req->End(); }, {});
static_cast<void>(conn.Read());
}
gflags::ShutDownCommandLineFlags();
google::ShutdownGoogleLogging();
return 0;
}