CD-ROM FILES SEEM TO DISAPPAER
authorScott Burris <scott@pita.cns.ucla.edu>
Mon, 10 Aug 1992 00:00:00 +0000 (00:00 +0000)
committerScott Burris <scott@pita.cns.ucla.edu>
Mon, 10 Aug 1992 00:00:00 +0000 (00:00 +0000)
commitc03d82b0871edd23bbb3f6d588395f6cacf1c0aa
tree9c482472b4b17b663b06b5427f003e8332994fb0
parentb892bbf71a8084b38e7c0e80fd1a2676bc4f4f81
CD-ROM FILES SEEM TO DISAPPAER

The infamous "off by 1" problem hit two places in the isofs code.
There is a check to see that a directory entry doesn't span more than one
physical block -- if so, that's an error.  Well if the directory entry just
happened to end at the last byte of the block, the kernel throught it
crossed into the next block and bailed out assuming the CD-ROM wasn't following
the standard.  The effect is that not only can't you access the file associated
with this directory entry, you also can't see any files or directories located
after that entry.

This is relatively rare, because a series of directory entries must fit
perfectly into a 2048 byte CD-ROM block for this to trigger.

AUTHOR: Scott Burris (scott@pita.cns.ucla.edu)
386BSD-Patchkit: patch00040
usr/src/sys.386bsd/isofs/isofs_lookup.c
usr/src/sys.386bsd/isofs/isofs_vnops.c