Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libext2fs: don't allow alloc_stats on bad inode/block numbers
Don't allow callers to feed bad block/inode numbers to ext2fs_*_alloc_stats2, because evil callers (<cough>resize2fs<cough>) can corrupt library state this way, leading to a crash. (There will be a subsequent patch to resize2fs to fix its bad behavior.) Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
- Loading branch information