]> 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>
Sun, 25 May 2025 19:01:49 +0000 (21:01 +0200)
commitf0541c06b7b7b019a3a38255a9496a1d13dc3595
treeeb0587b775f7b4188343dd06fef9fbfdc4edd527
parent23d9ae35c1ea937a4a9faedc876a15c9a9cf4aff
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