mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-08 17:18:27 +02:00
Print errors parsing match rules correctly
Not an exploitable vulnerability, just incorrect output. Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
This commit is contained in:
parent
b2f33623a0
commit
352ae6de6e
1 changed files with 2 additions and 2 deletions
|
|
@ -871,7 +871,7 @@ bus_match_rule_parse_arg_match (BusMatchRule *rule,
|
|||
else
|
||||
{
|
||||
dbus_set_error (error, DBUS_ERROR_MATCH_RULE_INVALID,
|
||||
"Key '%s' in match rule contains junk after argument number (%u). Only 'arg%upath' (for example) or 'arg0namespace' are valid", key, arg, arg);
|
||||
"Key '%s' in match rule contains junk after argument number (%lu). Only 'arg%lupath' (for example) or 'arg0namespace' are valid", key, arg, arg);
|
||||
goto failed;
|
||||
}
|
||||
}
|
||||
|
|
@ -889,7 +889,7 @@ bus_match_rule_parse_arg_match (BusMatchRule *rule,
|
|||
rule->args[arg] != NULL)
|
||||
{
|
||||
dbus_set_error (error, DBUS_ERROR_MATCH_RULE_INVALID,
|
||||
"Argument %d matched more than once in match rule\n", key);
|
||||
"Argument %s matched more than once in match rule\n", key);
|
||||
goto failed;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue