From a1b64f0e80360a1bd606ac92e9fae00724abb3ae Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Mon, 26 Apr 2021 17:49:52 -0400 Subject: [PATCH] bgpd: fixup fuzzer entrypoint for bgp ext message Signed-off-by: Quentin Young --- bgpd/bgp_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bgpd/bgp_main.c b/bgpd/bgp_main.c index 5c43ff213f..b9eb7453f2 100644 --- a/bgpd/bgp_main.c +++ b/bgpd/bgp_main.c @@ -536,7 +536,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) ringbuf_peek(p->ibuf_work, BGP_MARKER_SIZE, &pktsize, sizeof(pktsize)); pktsize = ntohs(pktsize); - assert(pktsize <= BGP_MAX_PACKET_SIZE); + assert(pktsize <= p->max_packet_size); if (ringbuf_remain(p->ibuf_work) >= pktsize) { struct stream *pkt = stream_new(pktsize); -- 2.39.5