Date: Sat, 18 May 2002 14:33:07 -0700 (PDT) From: Ian Dowse <iedowse@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/gnu/ext2fs ext2_alloc.c ext2_vfsops.c Message-ID: <200205182133.g4ILX7H43749@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
iedowse 2002/05/18 14:33:07 PDT Modified files: sys/gnu/ext2fs ext2_alloc.c ext2_vfsops.c Log: Fix two off-by-one errors when sanity-checking inode numbers. In ext2fs, inode numbers start at 1, so the maximum valid inode number is (s_inodes_per_group * s_groups_count), not one less. This is just a minimal change to avoid unnecessary panics and errors; some other related bugs that Bruce Evans mentioned to me are not addressed. Reviewed by: bde (ages ago) Revision Changes Path 1.37 +1 -1 src/sys/gnu/ext2fs/ext2_alloc.c 1.95 +1 -1 src/sys/gnu/ext2fs/ext2_vfsops.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205182133.g4ILX7H43749>