svn commit: r300458 - stable/10/usr.bin/ldd

Don Lewis truckman at FreeBSD.org
Mon May 23 05:19:38 UTC 2016


Author: truckman
Date: Mon May 23 05:19:37 2016
New Revision: 300458
URL: https://svnweb.freebsd.org/changeset/base/300458

Log:
  MFC r299952
  
  Increase size of argv[] array to avoid running off the end.
  
  Reported by:	Coverity
  CID:		1193819

Modified:
  stable/10/usr.bin/ldd/ldd.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/usr.bin/ldd/ldd.c
==============================================================================
--- stable/10/usr.bin/ldd/ldd.c	Mon May 23 05:15:06 2016	(r300457)
+++ stable/10/usr.bin/ldd/ldd.c	Mon May 23 05:19:37 2016	(r300458)
@@ -83,7 +83,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");


More information about the svn-src-stable mailing list