From: Quentin Young Date: Mon, 26 Apr 2021 21:49:52 +0000 (-0400) Subject: bgpd: fixup fuzzer entrypoint for bgp ext message X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=a1b64f0e80360a1bd606ac92e9fae00724abb3ae;p=mirror%2Ffrr.git bgpd: fixup fuzzer entrypoint for bgp ext message Signed-off-by: Quentin Young --- 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);