summaryrefslogtreecommitdiff
path: root/usr.sbin/binmiscctl/binmiscctl.c
diff options
context:
space:
mode:
authorSean Bruno <sbruno@FreeBSD.org>2015-01-28 20:22:48 +0000
committerSean Bruno <sbruno@FreeBSD.org>2015-01-28 20:22:48 +0000
commita142c8613050cb09e3bb5130cd0ce26a2a5c0276 (patch)
tree181efd38a55a699336dec505766d4bfd94429f54 /usr.sbin/binmiscctl/binmiscctl.c
parent272a972b88b4e7b5b7845c04725ef02afc620b8b (diff)
downloadsrc-test2-a142c8613050cb09e3bb5130cd0ce26a2a5c0276.tar.gz
src-test2-a142c8613050cb09e3bb5130cd0ce26a2a5c0276.zip
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
Notes
Notes: svn path=/head/; revision=277853
Diffstat (limited to 'usr.sbin/binmiscctl/binmiscctl.c')
-rw-r--r--usr.sbin/binmiscctl/binmiscctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/binmiscctl/binmiscctl.c b/usr.sbin/binmiscctl/binmiscctl.c
index 436e761c4186..44122eb47dc6 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");
}