tdb: add overflow detection to tdb_expand_adjust()
authorStefan Metzmacher <metze@samba.org>
Tue, 28 May 2013 11:01:27 +0000 (13:01 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 3 Jun 2013 08:21:28 +0000 (10:21 +0200)
commit75c3804250ab39cee13578f0bc336c7b52ec0e1f
tree7119ac3c4d30e7f891f87820abf41d2892211e6c
parent2b6e4ae4ae68bfeb5aead4d839351e3f9eb1a67f
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>
tdb/common/io.c