Commit 3a2cd4b9 by Felix Abecassis

seccomp: fix off-by-one error in array allocation for sscanf

The maximum field width does not include the null terminator. Signed-off-by: 's avatarFelix Abecassis <fabecassis@nvidia.com>
parent f217dcd0
......@@ -181,7 +181,7 @@ static int get_seccomp_arg_value(char *key, struct v2_rule_args *rule_args)
uint64_t mask = 0;
enum scmp_compare op = 0;
uint32_t index = 0;
char s[30] = {0};
char s[31] = {0};
char *tmp = NULL;
memset(s, 0, sizeof(s));
......
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