diff options
author | sbruno <sbruno@FreeBSD.org> | 2015-09-04 15:45:42 +0000 |
---|---|---|
committer | sbruno <sbruno@FreeBSD.org> | 2015-09-04 15:45:42 +0000 |
commit | 906861047e3b66a3d4c92eb83ea28b542ca143ff (patch) | |
tree | 8332208935de7d52345e66c7141301639a18bacc /usr.sbin | |
parent | c3f28072a721507c668befdc47e94d5760893be5 (diff) | |
download | FreeBSD-src-906861047e3b66a3d4c92eb83ea28b542ca143ff.zip FreeBSD-src-906861047e3b66a3d4c92eb83ea28b542ca143ff.tar.gz |
MFC r277853
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
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/binmiscctl/binmiscctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/binmiscctl/binmiscctl.c b/usr.sbin/binmiscctl/binmiscctl.c index 196247b..5ab82e4 100644 --- a/usr.sbin/binmiscctl/binmiscctl.c +++ b/usr.sbin/binmiscctl/binmiscctl.c @@ -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"); } |