HomeFreeBSD

The sd and od drivers didn't check for negative block numbers (like wd.c

Description

The sd and od drivers didn't check for negative block numbers (like wd.c
does) before calling dscheck(). dscheck() doesn't appreciate this and
calls Debugger() and returns without setting bp->b_error.

This can happen when there is a casting error and offsets > 2G are
converted to negative off_t's in the disk tools. (dumpfs used to do this).

Details

Provenance
peterAuthored on Aug 2 1996, 6:10 AM
Parents
rG8566830b43f6: Close PR#1455. In a couple of weeks, I'll change bsd.lib.mk to use
Branches
Unknown
Tags
Unknown

Event Timeline