cpu-set-util: fix null pointer dereference and several cleanups (#37900)

Fixes CID#1611618.
This commit is contained in:
Lennart Poettering
2025-06-27 14:59:25 +02:00
committed by GitHub
35 changed files with 515 additions and 577 deletions
+7 -7
View File
@@ -904,7 +904,7 @@ int config_parse_tunnel_key(
}
int config_parse_ipv6_flowlabel(
const char* unit,
const char *unit,
const char *filename,
unsigned line,
const char *section,
@@ -941,7 +941,7 @@ int config_parse_ipv6_flowlabel(
}
int config_parse_encap_limit(
const char* unit,
const char *unit,
const char *filename,
unsigned line,
const char *section,
@@ -976,7 +976,7 @@ int config_parse_encap_limit(
}
int config_parse_6rd_prefix(
const char* unit,
const char *unit,
const char *filename,
unsigned line,
const char *section,
@@ -1013,7 +1013,7 @@ int config_parse_6rd_prefix(
}
int config_parse_erspan_version(
const char* unit,
const char *unit,
const char *filename,
unsigned line,
const char *section,
@@ -1042,7 +1042,7 @@ int config_parse_erspan_version(
}
int config_parse_erspan_index(
const char* unit,
const char *unit,
const char *filename,
unsigned line,
const char *section,
@@ -1071,7 +1071,7 @@ int config_parse_erspan_index(
}
int config_parse_erspan_direction(
const char* unit,
const char *unit,
const char *filename,
unsigned line,
const char *section,
@@ -1100,7 +1100,7 @@ int config_parse_erspan_direction(
}
int config_parse_erspan_hwid(
const char* unit,
const char *unit,
const char *filename,
unsigned line,
const char *section,
+5 -5
View File
@@ -132,7 +132,7 @@ int can_set_netlink_message(Link *link, sd_netlink_message *m) {
}
int config_parse_can_bitrate(
const char* unit,
const char *unit,
const char *filename,
unsigned line,
const char *section,
@@ -171,7 +171,7 @@ int config_parse_can_bitrate(
}
int config_parse_can_time_quanta(
const char* unit,
const char *unit,
const char *filename,
unsigned line,
const char *section,
@@ -208,7 +208,7 @@ int config_parse_can_time_quanta(
}
int config_parse_can_restart_usec(
const char* unit,
const char *unit,
const char *filename,
unsigned line,
const char *section,
@@ -245,7 +245,7 @@ int config_parse_can_restart_usec(
}
int config_parse_can_control_mode(
const char* unit,
const char *unit,
const char *filename,
unsigned line,
const char *section,
@@ -284,7 +284,7 @@ int config_parse_can_control_mode(
}
int config_parse_can_termination(
const char* unit,
const char *unit,
const char *filename,
unsigned line,
const char *section,
+3 -3
View File
@@ -338,7 +338,7 @@ int link_get_captive_portal(Link *link, const char **ret) {
}
int config_parse_dhcp(
const char* unit,
const char *unit,
const char *filename,
unsigned line,
const char *section,
@@ -383,7 +383,7 @@ int config_parse_dhcp(
}
int config_parse_dhcp_route_metric(
const char* unit,
const char *unit,
const char *filename,
unsigned line,
const char *section,
@@ -492,7 +492,7 @@ int config_parse_ndisc_route_metric(
}
int config_parse_dhcp_send_hostname(
const char* unit,
const char *unit,
const char *filename,
unsigned line,
const char *section,
+1 -1
View File
@@ -887,7 +887,7 @@ int link_serialize_dhcp6_client(Link *link, FILE *f) {
}
int config_parse_dhcp6_pd_prefix_hint(
const char* unit,
const char *unit,
const char *filename,
unsigned line,
const char *section,
+2 -2
View File
@@ -346,7 +346,7 @@ int ipv4ll_update_mac(Link *link) {
}
int config_parse_ipv4ll(
const char* unit,
const char *unit,
const char *filename,
unsigned line,
const char *section,
@@ -387,7 +387,7 @@ int config_parse_ipv4ll(
}
int config_parse_ipv4ll_address(
const char* unit,
const char *unit,
const char *filename,
unsigned line,
const char *section,
+1 -1
View File
@@ -783,7 +783,7 @@ DEFINE_STRING_TABLE_LOOKUP(ip_reverse_path_filter, IPReversePathFilter);
DEFINE_CONFIG_PARSE_ENUM(config_parse_ip_reverse_path_filter, ip_reverse_path_filter, IPReversePathFilter);
int config_parse_ip_forward_deprecated(
const char* unit,
const char *unit,
const char *filename,
unsigned line,
const char *section,