diff options
author | truckman <truckman@FreeBSD.org> | 2016-05-16 16:01:46 +0000 |
---|---|---|
committer | truckman <truckman@FreeBSD.org> | 2016-05-16 16:01:46 +0000 |
commit | 4b3409d4d42b3d8d776f05d87a0e38c9fc5ca695 (patch) | |
tree | 82e6daa475ba3ac8b46b4519141363894f7677c4 /usr.bin/ldd/ldd.c | |
parent | d48f40647d319930792a20da20a9683804d25c4a (diff) | |
download | FreeBSD-src-4b3409d4d42b3d8d776f05d87a0e38c9fc5ca695.zip FreeBSD-src-4b3409d4d42b3d8d776f05d87a0e38c9fc5ca695.tar.gz |
Increase size of argv[] array to avoid running off the end.
Reported by: Coverity
CID: 1193819
MFC after: 1 week
Diffstat (limited to 'usr.bin/ldd/ldd.c')
-rw-r--r-- | usr.bin/ldd/ldd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/ldd/ldd.c b/usr.bin/ldd/ldd.c index cc3a769..e1bebe0 100644 --- a/usr.bin/ldd/ldd.c +++ b/usr.bin/ldd/ldd.c @@ -88,7 +88,7 @@ static void usage(void); static int execldd32(char *file, char *fmt1, char *fmt2, int aflag, int vflag) { - char *argv[8]; + char *argv[9]; int i, rval, status; LDD_UNSETENV("TRACE_LOADED_OBJECTS"); |