Fix theoretical problem with 0-length records.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 29 Jun 2009 02:17:20 +0000 (11:47 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 29 Jun 2009 02:17:20 +0000 (11:47 +0930)
commit195b605e88209772a4b2bc2e0ef32e610e62feb7
tree704d74e2ebdc78de300e1ccc7221130e48bcfe79
parent6d35d746f123291ba93a592997dcd5b6fe7828cf
Fix theoretical problem with 0-length records.
By faking them out to length 1, we might go oob.  Just fake the malloc.
ccan/tdb/io.c