]> git.ipfire.org Git - thirdparty/bird.git/commit
ASPA: fix aspa_check_upstream and aspa_check_downstream parse crash
authorMaria Matejka <mq@ucw.cz>
Wed, 21 May 2025 11:53:35 +0000 (13:53 +0200)
committerMaria Matejka <mq@ucw.cz>
Fri, 23 May 2025 13:19:36 +0000 (15:19 +0200)
commitc55328d360f6a5d0e8609004dbac662df96b251b
tree9b9800a823bcd664ec0ab253ae81483bd1bbac4c
parent14022f286c9306393629d2cabcf9d6b17b5cd830
ASPA: fix aspa_check_upstream and aspa_check_downstream parse crash

Due to internal differences between BIRD 2 and 3, there is
FI_CURRENT_ROUTE in BIRD 3 and `val.rte == NULL` is not supported
as a shortcut for fetching the route object.

When merging, we forgot to fix this difference in the BGP config parser,
thus the constant folder failed to recognize that this is not a constant
expression, leading to accidentally dereference the NULL route pointer
in config parse time.

This fixes #247.
proto/bgp/config.Y