Lines Matching full:arguments
7 The grub_printf_fmt_check() function parses the arguments of an untrusted
9 arguments counts and arguments types. The arguments count in the untrusted
10 format string must be less or equal to the arguments count in the expected
11 format string and both arguments types must match.
19 - the function expects that arguments definitions are always
27 should verify all arguments. So, if validation is not possible for
32 3. Add the max_args argument to check for the maximum allowed arguments
33 count in a printf() string. This should be set to the arguments count
35 return an error if the arguments count is exceeded.
37 The two additional arguments allow us to use parse_printf_arg_fmt() in
63 + * Parse printf() fmt0 string into args arguments.
65 + * The parsed arguments are either used by a printf() function to format the fmt0
67 + * against a format string with expected arguments.
75 + * The max_args allows to set a maximum number of accepted arguments. If the fmt0
76 + * string defines more arguments than the max_args then the parse_printf_arg_fmt()
93 + "positional arguments are not supported");
114 + return grub_error (GRUB_ERR_BAD_ARGUMENT, "too many arguments");
165 + /* Limit parsing to the number of expected arguments. */
176 + ret = grub_error (GRUB_ERR_BAD_ARGUMENT, "arguments types do not match");
207 + * The fmt is accepted if it has equal or less arguments than fmt_expected
208 + * and if the type of all arguments match.