From 35488eefdab64e074d33d414d8a8298ba4eb69c3 Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Fri, 10 Feb 2017 11:21:57 -0600 Subject: [PATCH] afl: set the packet data so pktlen gets set --- src/decode-afl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/decode-afl.c b/src/decode-afl.c index 59fd6fe13c..22faadd943 100644 --- a/src/decode-afl.c +++ b/src/decode-afl.c @@ -83,6 +83,7 @@ int DecoderParseDataFromFile(char *filename, DecoderFunc Decoder) { Packet *p = PacketGetFromAlloc(); if (p != NULL) { + PacketSetData(p, buffer, size); (void) Decoder (&tv, dtv, p, buffer, size, NULL); PacketFree(p); } @@ -133,6 +134,7 @@ int DecoderParseDataFromFileSerie(char *fileprefix, DecoderFunc Decoder) Packet *p = PacketGetFromAlloc(); if (p != NULL) { + PacketSetData(p, buffer, size); (void) Decoder (&tv, dtv, p, buffer, size, NULL); PacketFree(p); }