svn commit: r199684 - stable/7/usr.bin/kdump

Attilio Rao attilio at FreeBSD.org
Sun Nov 22 23:54:20 UTC 2009


Author: attilio
Date: Sun Nov 22 23:54:19 2009
New Revision: 199684
URL: http://svn.freebsd.org/changeset/base/199684

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

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

Modified: stable/7/usr.bin/kdump/kdump.c
==============================================================================
--- stable/7/usr.bin/kdump/kdump.c	Sun Nov 22 23:51:51 2009	(r199683)
+++ stable/7/usr.bin/kdump/kdump.c	Sun Nov 22 23:54:19 2009	(r199684)
@@ -802,7 +802,7 @@ ktrsyscall(struct ktr_syscall *ktr)
 				narg--;
 			}
 		}
-		while (narg) {
+		while (narg > 0) {
 			print_number(ip,narg,c);
 		}
 		(void)putchar(')');


More information about the svn-src-stable mailing list