If the record is at the end of the database, pretending it has length 1
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 30 Jul 2009 20:09:33 +0000 (13:09 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 30 Jul 2009 20:09:33 +0000 (13:09 -0700)
commita88c281ddc52bfb20cf65245a703233426bb4592
treef560303844f087c1fcb7588164353eba013044d5
parent8eff9f9a3167eb0c2a4c00edf5a4cdbbc06c4dfd
If the record is at the end of the database, pretending it has length 1
might take us out-of-bounds.  Only pretend to be length 1 for the malloc.
lib/tdb/common/io.c