mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-27 08:00:11 +00: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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=277853
@ -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 New Issue
Block a user