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

afl: fix read length

parent e4a6d61b
No related branches found
No related tags found
1 merge request!410AFL Persistent Fuzzing Mode
......@@ -55,7 +55,7 @@ static int udp_stdin_recv(int fd, void *d)
{
struct udp_stdin *rq = (struct udp_stdin *) d;
rq->iov[RX].iov_len = fread(rq->iov[RX].iov_base,
1, rq->iov[RX].iov_len, stdin);
1, KNOT_WIRE_MAX_PKTSIZE, stdin);
return rq->iov[RX].iov_len;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment