diff options
author | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2002-07-09 13:07:43 +0000 |
---|---|---|
committer | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2002-07-09 13:07:43 +0000 |
commit | 71c7a445fe5b2ff5694ff0d9538493a99365bd40 (patch) | |
tree | 1602f5c52d1a6b40f61e8e64d110d80c8e3201f8 | |
parent | 5b9e2ad9cf5fa4157205659db959dc1ee47af310 (diff) |
Potential off-by-five, ok provos@
-rw-r--r-- | bin/systrace/intercept.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/systrace/intercept.c b/bin/systrace/intercept.c index b799205b90e..7c5c025f9cc 100644 --- a/bin/systrace/intercept.c +++ b/bin/systrace/intercept.c @@ -1,4 +1,4 @@ -/* $OpenBSD: intercept.c,v 1.9 2002/07/07 23:14:43 provos Exp $ */ +/* $OpenBSD: intercept.c,v 1.10 2002/07/09 13:07:42 dhartmei Exp $ */ /* * Copyright 2002 Niels Provos <provos@citi.umich.edu> * All rights reserved. @@ -416,7 +416,7 @@ intercept_get_string(int fd, pid_t pid, void *addr) if (strlen(name) < off) done = 1; - } while (!done && off < sizeof(name)); + } while (!done && off + 5 < sizeof(name)); if (!done) { warnx("%s: string too long", __func__); |