Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Nov 2009 16:13:16 +0000 (UTC)
From:      Attilio Rao <attilio@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r199654 - stable/8/usr.bin/kdump
Message-ID:  <200911221613.nAMGDGtb023058@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: attilio
Date: Sun Nov 22 16:13:16 2009
New Revision: 199654
URL: http://svn.freebsd.org/changeset/base/199654

Log:
  MFC r199024:
  Use a safety belt for cases where corrupted narg can be passed to the
  ktrsyscall().

Modified:
  stable/8/usr.bin/kdump/kdump.c
Directory Properties:
  stable/8/usr.bin/kdump/   (props changed)

Modified: stable/8/usr.bin/kdump/kdump.c
==============================================================================
--- stable/8/usr.bin/kdump/kdump.c	Sun Nov 22 16:11:20 2009	(r199653)
+++ stable/8/usr.bin/kdump/kdump.c	Sun Nov 22 16:13:16 2009	(r199654)
@@ -799,7 +799,7 @@ ktrsyscall(struct ktr_syscall *ktr)
 				narg--;
 			}
 		}
-		while (narg) {
+		while (narg > 0) {
 			print_number(ip,narg,c);
 		}
 		(void)putchar(')');



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