AFL fuzzing harness
This commit is contained in:
16
fastcgi_conn_afl.cc
Normal file
16
fastcgi_conn_afl.cc
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user