]> git.puffer.fish Git - matthieu/frr.git/commitdiff
disable dynamic capability message parsing in fuzz
authorQuentin Young <qlyoung@cumulusnetworks.com>
Tue, 3 Dec 2019 18:39:27 +0000 (13:39 -0500)
committerQuentin Young <qlyoung@nvidia.com>
Mon, 15 Nov 2021 19:42:31 +0000 (14:42 -0500)
It doesn't work and the code is so old it won't work with any vendor,
so I don't want to fix it. Skip this path for now.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
bgpd/bgp_packet.c

index 2a864d759508ef69afc52f74356d044ab298d4a8..73ac7eb1ae4401389dea44089bb93e4d16b3c791 100644 (file)
@@ -2662,6 +2662,10 @@ int bgp_process_packet(struct thread *thread)
                        break;
                case BGP_MSG_CAPABILITY:
                        frrtrace(2, frr_bgp, capability_process, peer, size);
+#ifdef FUZZING
+                       /* This shit is 1. buggy 2. not worth fixing */
+                       break;
+#endif
                        atomic_fetch_add_explicit(&peer->dynamic_cap_in, 1,
                                                  memory_order_relaxed);
                        mprc = bgp_capability_receive(peer, size);