Subject: CVS commit: src
To: None <source-changes@netbsd.org>
From: Bill Studenmund <wrstuden@netbsd.org>
List: source-changes
Date: 03/11/1999 12:23:58
Module Name:	src
Committed By:	wrstuden
Date:		Thu Mar 11 20:23:58 UTC 1999

Modified Files:
	src/sbin/newfs: mkfs.c
Log Message:
Modify how the byteswapping of the cylinder summaries is handled. If we
need to swap, allocate a buffer for the swapped summaries rather than using
writebuf. The latter is fixed at 64k, which is only enough room to hold
4096 summaries. Creating an fs with more results in a buffer overrun.

First noted by Matt Jacob mjacob@netbsd.org, and fixed by Albeaus
Bayucan, bayucan@nas.nasa.gov. Minor mods by me.