Unverified Commit a21d44eb by Felix Abecassis Committed by Christian Brauner

seccomp: use a default value of 0 for the mask

The mask was unconditionally parsed, it failed if no mask was provided. Signed-off-by: 's avatarFelix Abecassis <fabecassis@nvidia.com>
parent 85db109e
......@@ -201,7 +201,7 @@ static int get_seccomp_arg_value(char *key, struct seccomp_v2_rule_args *rule_ar
uint64_t mask = 0, value = 0;
enum scmp_compare op = 0;
char *tmp = NULL;
char s[31] = {0}, v[24] = {0}, m[24] = {0};
char s[31] = {0}, v[24] = {0}, m[24] = {'0'};
tmp = strchr(key, '[');
if (!tmp) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment