c42dcf58de
Use string literals as format strings so that compilers can validate the count and types of the inherent arguments. kernel_to_cil.c: In function ‘class_constraint_rules_to_strs’: kernel_to_cil.c:301:17: error: format not a string literal, argument types not checked [-Werror=format-nonliteral] 301 | rc = strs_create_and_add(strs, format_str, 3, classkey, perms+1, expr); | ^~ kernel_to_cil.c: In function ‘class_validatetrans_rules_to_strs’: kernel_to_cil.c:341:17: error: format not a string literal, argument types not checked [-Werror=format-nonliteral] 341 | rc = strs_create_and_add(strs, format_str, 2, classkey, expr); | ^~ kernel_to_cil.c: In function ‘cats_ebitmap_to_str’: kernel_to_cil.c:1068:40: error: format not a string literal, argument types not checked [-Werror=format-nonliteral] 1068 | val_to_name[start], val_to_name[i]); | ^~~~~~~~~~~ kernel_to_conf.c: In function ‘class_constraint_rules_to_strs’: kernel_to_conf.c:301:42: error: format not a string literal, argument types not checked [-Werror=format-nonliteral] 301 | flavor, classkey, perms+1, expr); | ^~~~~~ kernel_to_conf.c: In function ‘cats_ebitmap_to_str’: kernel_to_conf.c:1059:40: error: format not a string literal, argument types not checked [-Werror=format-nonliteral] 1059 | val_to_name[start], sep, val_to_name[i]); | ^~~~~~~~~~~ kernel_to_conf.c:1062:25: error: format not a string literal, argument types not checked [-Werror=format-nonliteral] 1062 | len = snprintf(p, remaining, fmt, val_to_name[start]); | ^~~ module_to_cil.c: In function ‘cond_expr_to_cil’: module_to_cil.c:1340:25: error: format not a string literal, argument types not checked [-Werror=format-nonliteral] 1340 | rlen = snprintf(new_val, len, fmt_str, op, val1, val2); | ^~~~ module_to_cil.c: In function ‘constraint_expr_to_string’: module_to_cil.c:1881:25: error: format not a string literal, argument types not checked [-Werror=format-nonliteral] 1881 | rlen = snprintf(new_val, len, fmt_str, op, val1, val2); | ^~~~ Signed-off-by: Christian Göttsche <cgzones@googlemail.com> |
||
---|---|---|
.. | ||
cil | ||
fuzz | ||
include | ||
man | ||
src | ||
tests | ||
utils | ||
.gitignore | ||
COPYING | ||
Makefile | ||
VERSION |