]> git.ozlabs.org Git - ccan/commit
tdb2: fix remapping inside tdb_traverse_read
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 13 Sep 2010 04:29:15 +0000 (13:59 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 13 Sep 2010 04:29:15 +0000 (13:59 +0930)
commit0455668028cfe8f0417037975bc3d7dd742974db
tree1d96823f286da6871fb2d002d7070cdbcfd17ad3
parentcbe5094e85d08d19393c1b66abd59aecce7c8408
tdb2: fix remapping inside tdb_traverse_read

Because we (temporarily!) marked the tdb read_only=true, any remap would
mmap PROT_READ, and the next store would SEGV.

Pulled in more test infrastructure from tdb.
ccan/tdb2/io.c
ccan/tdb2/private.h
ccan/tdb2/tdb.c
ccan/tdb2/test/external-agent.c [new file with mode: 0644]
ccan/tdb2/test/external-agent.h [new file with mode: 0644]
ccan/tdb2/test/logging.c
ccan/tdb2/test/logging.h
ccan/tdb2/test/run-001-encode.c
ccan/tdb2/test/run-001-fls.c
ccan/tdb2/test/run-remap-in-read_traverse.c [new file with mode: 0644]