Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 May 2002 14:43:45 -0500 (CDT)
From:      Scott Bertilson <scott@nts.umn.edu>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        Scott Bertilson <scott@nts.umn.edu>
Subject:   kern/37677: off by 1 in $FreeBSD: src/sys/kern/subr_diskslice.c,v 1.82.2.6
Message-ID:  <200205021943.g42Jhjt20130@ssb2.nts.umn.edu>

next in thread | raw e-mail | index | archive | help

>Number:         37677
>Category:       kern
>Synopsis:       off by 1 in $FreeBSD: src/sys/kern/subr_diskslice.c,v 1.82.2.6
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 02 12:50:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Scott Bertilson
>Release:        FreeBSD 4.4-RELEASE-p1 i386
>Organization:
University of Minnesota / OIT
>Environment:
System: FreeBSD ssb2.nts.umn.edu 4.4-RELEASE-p1 FreeBSD 4.4-RELEASE-p1 #13: Tue Apr 30 19:16:22 CDT 2002 scott@ssb2.nts.umn.edu:/home/src/sys/compile/SSB i386


>Description:
	line 916:
	|| pp->p_offset + pp->p_size > end
	offset + size should always be 1 more than end
>How-To-Repeat:
	ran into this while trying to get a drive with OpenBSD partitions to mount
>Fix:

	|| (pp->p_offset + pp->p_size - 1) > end
	as at line 948
	(u_long)(pp->p_offset + pp->p_size - 1),
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




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