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");
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "[email protected]"

Reply via email to