svn commit: r203429 - head/usr.bin/truss

Randall Stewart rrs at FreeBSD.org
Wed Feb 3 13:03:47 UTC 2010


Author: rrs
Date: Wed Feb  3 13:03:47 2010
New Revision: 203429
URL: http://svn.freebsd.org/changeset/base/203429

Log:
  This fix makes it so the args are malloc'd before
  we use them (always a good idea ;-0)
  
  This was found and fixed by JC
  
  Obtained from:	JC (c.jayachandran at gmail.com)

Modified:
  head/usr.bin/truss/mips-fbsd.c

Modified: head/usr.bin/truss/mips-fbsd.c
==============================================================================
--- head/usr.bin/truss/mips-fbsd.c	Wed Feb  3 12:59:44 2010	(r203428)
+++ head/usr.bin/truss/mips-fbsd.c	Wed Feb  3 13:03:47 2010	(r203429)
@@ -155,8 +155,8 @@ mips_syscall_entry(struct trussinfo *tru
   if (nargs == 0)
     return;
 
-#if 0 // XXX
   fsc.args = malloc((1+nargs) * sizeof(unsigned long));
+#if 0 // XXX
   iorequest.piod_op = PIOD_READ_D;
   iorequest.piod_offs = (void *)parm_offset;
   iorequest.piod_addr = fsc.args;


More information about the svn-src-head mailing list