Subject: kern/537: Bug in MSDOSFS
To: None <gnats-admin@sun-lamp.cs.berkeley.edu>
From: None <mikeh@hds.com>
List: netbsd-bugs
Date: 10/28/1994 14:50:09
>Number:         537
>Category:       kern
>Synopsis:       Padding for DOS3.3 boot sector structure is incorrect
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 28 14:50:07 1994
>Originator:     Mike Hartman
>Organization:
Human Designed Systems, Inc.
>Release:        current
>Environment:
	
System: SunOS hdssun1 4.1.3 1 sun4m
Architecture: sun4

>Description:
	The padding field in the DOS3.3 boot sector structure does not make
	the structure 512 bytes as it should.  No bugs will occur from this,
	since the DOS5.0 boot sector structure is used to access the boot
	sector signature bytes.
>How-To-Repeat:
	Code inspection
>Fix:
*** src/src/sys/msdosfs/bootsect.h	Wed Oct 26 12:38:45 1994
--- src/src/sys/msdosfs/bootsect.h	Thu Oct 27 09:05:06 1994
***************
*** 26,32 ****
  	char bsOemName[8];	/* OEM name and version */
  	char bsBPB[19];		/* BIOS parameter block */
  	char bsDriveNumber;	/* drive number (0x80) */
! 	char bsBootCode[474];	/* pad so structure is 512 bytes long */
  	u_short bsBootSectSig;
  #define	BOOTSIG	0xaa55
  };
--- 26,32 ----
  	char bsOemName[8];	/* OEM name and version */
  	char bsBPB[19];		/* BIOS parameter block */
  	char bsDriveNumber;	/* drive number (0x80) */
! 	char bsBootCode[479];	/* pad so structure is 512 bytes long */
  	u_short bsBootSectSig;
  #define	BOOTSIG	0xaa55
  };
>Audit-Trail:
>Unformatted: