e2fsprogs/lib
Adrien Schildknecht 5cc6db0c82 libext2fs: reset the size of the zeroing buffer
When a ext2_filsys is freed, ext2fs_zero_blocks2() frees the buffer but
does not reset its size.
If this function is later called with a new ext2_filsys, the code
assumes that the buffer is still valid and return a NULL pointer.

Valgrind output:
==188948== Syscall param pwrite64(buf) points to unaddressable byte(s)
==188948==    at 0x4E46D03: __pwrite_nocancel (syscall-template.S:81)
==188948==    by 0x1254EC: raw_write_blk (unix_io.c:240)
==188948==    by 0x124AAB: unix_write_blk64 (unix_io.c:850)
==188948==    by 0x122893: ext2fs_zero_blocks2 (mkjournal.c:204)

Signed-off-by: Adrien Schildknecht <adriens@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2016-08-10 16:43:25 -04:00
..
blkid libblkid: avoid DIOCGDINFO where missing. 2016-06-08 14:26:38 -04:00
e2p lib: build elf shared libraries using -fPIC -shared 2016-05-31 01:54:09 -04:00
et lib: build elf shared libraries using -fPIC -shared 2016-05-31 01:54:09 -04:00
ext2fs libext2fs: reset the size of the zeroing buffer 2016-08-10 16:43:25 -04:00
ss lib: build elf shared libraries using -fPIC -shared 2016-05-31 01:54:09 -04:00
support tests: suppress use of libmagic when running the regression test suite 2016-06-07 12:46:24 -04:00
uuid lib: build elf shared libraries using -fPIC -shared 2016-05-31 01:54:09 -04:00
Android.mk Add files to build on Android 2015-03-01 15:45:11 -05:00
Makefile.bsd-lib Add --enable-hardening which builds e2fsprogs with security hardening 2016-05-22 01:58:09 -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 lib: build elf shared libraries using -fPIC -shared 2016-05-31 01:54:09 -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 Add --enable-hardening which builds e2fsprogs with security hardening 2016-05-22 01:58:09 -04:00
config.h.in configure: fix detection of dlopen() for BSD systems 2016-06-07 01:01:37 -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