]> git.ipfire.org Git - thirdparty/bird.git/commit
Conf: Fix parsing full-length IPv6 addresses
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Wed, 5 Jan 2022 15:38:49 +0000 (16:38 +0100)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Wed, 5 Jan 2022 15:38:49 +0000 (16:38 +0100)
commit29dda184e56ce3a1ec72db4612198f6b3ba84e82
treee85600ecd1de94a9e2ac50a5d712126ff55595af
parent75aceadaf746f8ed0acce0424f89903283dacf16
Conf: Fix parsing full-length IPv6 addresses

Lexer expression for bytestring was too loose, accepting also
full-length IPv6 addresses. It should be restricted such that
colon is used between every byte or never.

Fix the regex and also add some test cases for it.

Thanks to Alexander Zubkov for the bugreport
conf/cf-lex.l
filter/test.conf