diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2005-12-30 19:46:56 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2005-12-30 19:46:56 +0000 |
commit | 59186e41369608855681212e555f620400f125ca (patch) | |
tree | 68f8e875d2639dbfd9d7e9efa05d50a34482d829 /sys/compat/hpux/m68k | |
parent | e4021e01bb99e4567a9194ab990184de4e823e19 (diff) |
Missing or incorrect header sizes bounds check; ``looks ok'' mickey@
Diffstat (limited to 'sys/compat/hpux/m68k')
-rw-r--r-- | sys/compat/hpux/m68k/hpux_exec.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/compat/hpux/m68k/hpux_exec.c b/sys/compat/hpux/m68k/hpux_exec.c index 1bad2ef2894..ce5b1d26ec9 100644 --- a/sys/compat/hpux/m68k/hpux_exec.c +++ b/sys/compat/hpux/m68k/hpux_exec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hpux_exec.c,v 1.1 2004/07/09 21:33:45 mickey Exp $ */ +/* $OpenBSD: hpux_exec.c,v 1.2 2005/12/30 19:46:55 miod Exp $ */ /* $NetBSD: hpux_exec.c,v 1.8 1997/03/16 10:14:44 thorpej Exp $ */ /* @@ -102,6 +102,9 @@ exec_hpux_makecmds(p, epp) short sysid, magic; int error = ENOEXEC; + if (epp->ep_hdrvalid < sizeof(struct hpux_exec)) + return (ENOEXEC); + magic = HPUX_MAGIC(hpux_ep); sysid = HPUX_SYSID(hpux_ep); |