From: Yu Watanabe Date: Sun, 26 Jan 2025 00:41:25 +0000 (+0900) Subject: network: fix offset of preference in backward compat option X-Git-Tag: v258-rc1~1482 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ba0266b376d7cc5205d8a4a3d999aec13c24fe5d;p=thirdparty%2Fsystemd.git network: fix offset of preference in backward compat option Fixes a bug introduced by a10d6e0124bb6e202baef9170b019e2e6a7af1fd. Fixes oss-fuzz#391916479 (https://issues.oss-fuzz.com/issues/391916479). Fixes #36172. --- diff --git a/src/network/networkd-network-gperf.gperf b/src/network/networkd-network-gperf.gperf index bf91f2c4c14..83ef927b8b5 100644 --- a/src/network/networkd-network-gperf.gperf +++ b/src/network/networkd-network-gperf.gperf @@ -599,7 +599,7 @@ Network.DHCPv6PrefixDelegation, config_parse_tristate, IPv6PrefixDelegation.RouterLifetimeSec, config_parse_sec, 0, offsetof(Network, router_lifetime_usec) IPv6PrefixDelegation.Managed, config_parse_bool, 0, offsetof(Network, router_managed) IPv6PrefixDelegation.OtherInformation, config_parse_bool, 0, offsetof(Network, router_other_information) -IPv6PrefixDelegation.RouterPreference, config_parse_router_preference, 0, 0 +IPv6PrefixDelegation.RouterPreference, config_parse_router_preference, 0, offsetof(Network, router_preference) IPv6PrefixDelegation.EmitDNS, config_parse_bool, 0, offsetof(Network, router_emit_dns) IPv6PrefixDelegation.DNS, config_parse_radv_dns, 0, 0 IPv6PrefixDelegation.EmitDomains, config_parse_bool, 0, offsetof(Network, router_emit_domains) diff --git a/test/fuzz/fuzz-network-parser/oss-fuzz-391916479 b/test/fuzz/fuzz-network-parser/oss-fuzz-391916479 new file mode 100644 index 00000000000..b918d26abec Binary files /dev/null and b/test/fuzz/fuzz-network-parser/oss-fuzz-391916479 differ