Skip to content
Snippets Groups Projects
Commit fc78476f authored by Vitezslav Kriz's avatar Vitezslav Kriz
Browse files

afl-persistent: cannibalize tcp_master

parent ab9b6f4b
Branches
Tags
1 merge request!410AFL Persistent Fuzzing Mode
......@@ -10,7 +10,7 @@ noinst_PROGRAMS = \
packet \
knotd_stdio
knotd_stdio_SOURCES = wrap/udp-handler.c wrap/server.c
knotd_stdio_SOURCES = wrap/udp-handler.c wrap/server.c wrap/tcp-handler.c
knotd_stdio_CPPFLAGS = $(AM_CPPFLAGS) $(liburcu_CFLAGS)
knotd_stdio_LDADD = \
......
/* Copyright (C) 2015 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#define tcp_master _orig_tcp_master
#include "knot/server/tcp-handler.c"
#undef tcp_master
int tcp_master(dthread_t *thread)
{
log_info("AFL, tcp_master out of order");
return 0;
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment