freebsd-src/sys/gnu/ext2fs
Kirk McKusick 15e549f668 Bug fixes for currently harmless bugs that could rise to bite
the unwary if the code were called in slightly different ways.

1) In ufs_bmaparray() the code for calculating 'runb' will stop one block
short of the first entry in an indirect block. i.e. if an indirect block
contains N block numbers b[0]..b[N-1] then the code will never check if
b[0] and b[1] are sequential. For reference, compare with the equivalent
code that deals with direct blocks.

2) In ufs_lookup() there is an off-by-one error in the test that checks
if dp->i_diroff is outside the range of the the current directory size.
This is completely harmless, since the following while-loop condition
'dp->i_offset < endsearch' is never met, so the code immediately
does a second pass starting at dp->i_offset = 0.

3) Again in ufs_lookup(), the condition in a sanity check is wrong
for directories that are longer than one block. This bug means that
the sanity check is only effective for small directories.

Submitted by:	Ian Dowse <iedowse@maths.tcd.ie>
2000-03-15 07:18:15 +00:00
..
COPYRIGHT.INFO Updated/corrected the list of GPL'ed files. 2000-01-01 11:27:50 +00:00
ext2_alloc.c
ext2_balloc.c
ext2_bmap.c Bug fixes for currently harmless bugs that could rise to bite 2000-03-15 07:18:15 +00:00
ext2_extern.h
ext2_fs_sb.h Import the Linux ext2fs files that our GPL'ed ext2fs files seem to be 2000-01-01 11:05:19 +00:00
ext2_fs.h Don't allow mounting (or mounting R/W) of filesystems with unsupported 2000-01-02 17:40:02 +00:00
ext2_ihash.c
ext2_inode_cnv.c Merged changes in ext2_fs.h between Linux 1.2.2 and Linux 2.3.35. The 2000-01-01 17:39:21 +00:00
ext2_inode.c
ext2_linux_balloc.c Import the Linux ext2fs files that our GPL'ed ext2fs files seem to be 2000-01-01 11:05:19 +00:00
ext2_linux_ialloc.c Import the Linux ext2fs files that our GPL'ed ext2fs files seem to be 2000-01-01 11:05:19 +00:00
ext2_lookup.c MFS (ext2_lookup.c 1.17.2.2, ext2_vnops.c 1.42.2.2: fix "filetype" support). 2000-03-03 08:00:27 +00:00
ext2_mount.h
ext2_readwrite.c
ext2_subr.c
ext2_vfsops.c Don't forget to check for unsupported features when updating. It was 2000-03-09 05:21:10 +00:00
ext2_vnops.c MFS (ext2_lookup.c 1.17.2.2, ext2_vnops.c 1.42.2.2: fix "filetype" support). 2000-03-03 08:00:27 +00:00
fs.h
i386-bitops.h
inode.h