Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Feb 2010 13:03:47 +0000 (UTC)
From:      Randall Stewart <rrs@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r203429 - head/usr.bin/truss
Message-ID:  <201002031303.o13D3lkW001431@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002031303.o13D3lkW001431>