mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 22:32:43 -04:00
Check for invalid length or more than max length for the interpreter, instead
of the validity of the string pointer holding the interpreter. Submitted by: sson Reviewed by: dim MFC after: 3 days
This commit is contained in:
parent
272a972b88
commit
a142c86130
1 changed files with 1 additions and 1 deletions
|
|
@ -363,7 +363,7 @@ add_cmd(__unused int argc, char *argv[], ximgact_binmisc_entry_t *xbe)
|
|||
usage("Error: Missing magic argument");
|
||||
}
|
||||
|
||||
if (!xbe->xbe_interpreter) {
|
||||
if (!strnlen(xbe->xbe_interpreter, IBE_INTERP_LEN_MAX)) {
|
||||
usage("Error: Missing 'interpreter' argument");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue