e2fsprogs/lib
Theodore Ts'o f66e6ce444 libext2fs: avoid buffer overflow if s_first_meta_bg is too big
If s_first_meta_bg is greater than the of number block group
descriptor blocks, then reading or writing the block group descriptors
will end up overruning the memory buffer allocated for the
descriptors.  Fix this by limiting first_meta_bg to no more than
fs->desc_blocks.  This doesn't correct the bad s_first_meta_bg value,
but it avoids causing the e2fsprogs userspace programs from
potentially crashing.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2014-08-10 16:20:59 -04:00
..
blkid Use sys/syscall.h instead of syscall.h 2014-07-10 15:54:42 -04:00
e2p e2fsprogs: remove checker infrastructure 2014-07-04 23:59:30 -04:00
et e2fsprogs: remove checker infrastructure 2014-07-04 23:59:30 -04:00
ext2fs libext2fs: avoid buffer overflow if s_first_meta_bg is too big 2014-08-10 16:20:59 -04:00
quota build: fix unused/uninitialized variable warnings 2014-07-25 22:48:01 -04:00
ss e2fsprogs: remove checker infrastructure 2014-07-04 23:59:30 -04:00
uuid e2fsprogs: remove checker infrastructure 2014-07-04 23:59:30 -04:00
Makefile.bsd-lib Include LDFLAGS when building BSD libraries 2012-05-11 22:21:08 -04:00
Makefile.checker e2fsprogs: remove checker infrastructure 2014-07-04 23:59:30 -04:00
Makefile.darwin-lib Add configure options --enable-symlink-build and --enable-symlink-install 2010-05-17 19:21:42 -04:00
Makefile.elf-lib Put ELF_OTHER_LIBS in the right place for the linker 2012-08-06 12:30:49 -04:00
Makefile.library Add configure options --enable-symlink-build and --enable-symlink-install 2010-05-17 19:21:42 -04:00
Makefile.profile Add configure options --enable-symlink-build and --enable-symlink-install 2010-05-17 19:21:42 -04:00
Makefile.solaris-lib Put ELF_OTHER_LIBS in the right place for the linker 2012-08-06 12:30:49 -04:00
config.h.in libext2fs: have UNIX IO manager use pread64/pwrite64 2014-08-08 16:42:05 -04:00
dirpaths.h.in Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00
fpopen.c Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00