diff options
author | Matthew Dempsky <matthew@cvs.openbsd.org> | 2011-10-18 20:01:29 +0000 |
---|---|---|
committer | Matthew Dempsky <matthew@cvs.openbsd.org> | 2011-10-18 20:01:29 +0000 |
commit | 3a51c17d59a6be905a416ae8c256bea202defe39 (patch) | |
tree | e2bb7eb51bef0cbab007679ec2a544d6fd54be13 /bin/systrace | |
parent | e44d634752961818288ecf238acf0b93a94d809c (diff) |
Bump intercept_get_string() internal buffer to allow strings up to
ARG_MAX long, so that ic_trargv can execute reliably.
Thanks to Olivier Cherrier for reporting and helping to diagnose the
problem.
ok deraadt@
Diffstat (limited to 'bin/systrace')
-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 6059df4e959..0c0ffe310ed 100644 --- a/bin/systrace/intercept.c +++ b/bin/systrace/intercept.c @@ -1,4 +1,4 @@ -/* $OpenBSD: intercept.c,v 1.57 2011/09/18 23:24:14 matthew Exp $ */ +/* $OpenBSD: intercept.c,v 1.58 2011/10/18 20:01:28 matthew Exp $ */ /* * Copyright 2002 Niels Provos <provos@citi.umich.edu> * All rights reserved. @@ -548,7 +548,7 @@ intercept_replace(int fd, pid_t pid, u_int16_t seqnr, char * intercept_get_string(int fd, pid_t pid, void *addr) { - static char name[8192]; + static char name[ARG_MAX]; int off = 0, done = 0, stride; if (addr == NULL) |