From 141fb51f1a3c22c45025426775c00f66c06406a7 Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Tue, 7 Jun 2022 10:35:48 +0200 Subject: [PATCH] IPv4 flowspec literals should reject IPv6 prefices in a well-behaved way When writing flow4 { dst 2001:db8::dead:beef/128; }, BIRD crashed on an not-well-debuggable segfault as it tried to copy the whole 128-bit prefix into an IPv4-sized memory. --- conf/confbase.Y | 11 ++++++++++- conf/flowspec.Y | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/conf/confbase.Y b/conf/confbase.Y index 6985783b..5f45c507 100644 --- a/conf/confbase.Y +++ b/conf/confbase.Y @@ -110,7 +110,7 @@ CF_DECLS %type expr bool pxlen4 %type