]> git.ipfire.org Git - thirdparty/coreutils.git/commit
cp: avoid data-corrupting free-memory-read
authorJim Meyering <jim@meyering.net>
Tue, 16 Oct 2012 15:43:49 +0000 (17:43 +0200)
committerJim Meyering <jim@meyering.net>
Wed, 17 Oct 2012 16:17:56 +0000 (18:17 +0200)
commit64aef5fb9afecc023a6e719da161dbbf450908b8
treea592f63d1dd77c6f946eb594a4828468f100db58
parentc528f13136c8b3ed89d5d59bdc04f99872e10fa7
cp: avoid data-corrupting free-memory-read

* src/extent-scan.c (extent_scan_read): Reset our last_ei
pointer whenever the parent buffer might have just been freed.
* tests/cp/fiemap-extent-FMR.sh: New test.
* tests/local.mk (all_tests): Add it.
* NEWS (Bug fixes): Mention it.
Reported by Mike Gerth in http://bugs.gnu.org/12656, and with
help from Alan Curry.  Bug introduced in commit v8.10-60-g18f5a85.
NEWS
src/extent-scan.c
tests/cp/fiemap-FMR.sh [new file with mode: 0755]
tests/local.mk