tdb: add overflow detection to tdb_expand_adjust()
commit854c5f0aac03c7c6d7e1b37997dcdc848fec1499
authorStefan Metzmacher <metze@samba.org>
Tue, 28 May 2013 11:01:27 +0000 (28 13:01 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 3 Jun 2013 08:21:28 +0000 (3 10:21 +0200)
tree6c83492bdef9a447149748ed33ce58b2aa1c720c
parente19d46f7e31a32e2b5ae3ec05e13f32b8ac2109d
tdb: add overflow detection to tdb_expand_adjust()

We round up at maximun to a new size of 4GB,
but still return at least the given size.

The caller has to deal with ENOSPC itself.

Pair-Programmed-With: Volker Lendecke <vl@samba.org>

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Rusty Russell <rusty@rustcorp.com.au>
lib/tdb/common/io.c