NetBSD Problem Report #537

From gnats  Fri Oct 28 14:39:07 1994
Received: from pain.lcs.mit.edu (pain.lcs.mit.edu [128.52.46.239]) by sun-lamp.cs.berkeley.edu (8.6.9/8.6.9) with ESMTP id OAA11292 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Fri, 28 Oct 1994 14:39:06 -0700
Message-Id: <9410271313.AA25181@hdssun1.hds.com>
Date: Thu, 27 Oct 94 09:13:40 EDT
From: mikeh@hds.com
Reply-To: mikeh@hds.com
To: gnats-bugs@NetBSD.ORG
Subject: Bug in MSDOSFS
X-Send-Pr-Version: 3.2

>Number:         537
>Category:       kern
>Synopsis:       Padding for DOS3.3 boot sector structure is incorrect
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 28 14:50:07 +0000 1994
>Closed-Date:    Fri Oct 28 22:40:55 +0000 1994
>Last-Modified:  
>Originator:     Mike Hartman
>Release:        current
>Organization:
Human Designed Systems, Inc.
>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
  };
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mycroft 
State-Changed-When: Fri Oct 28 15:40:55 PDT 1994 
State-Changed-Why:  
Fixed. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.