tdb: Refuse to load a database with hash size 0
authorAndrew Bartlett <abartlet@samba.org>
Mon, 9 Nov 2015 01:10:11 +0000 (14:10 +1300)
committerJeremy Allison <jra@samba.org>
Fri, 18 Dec 2015 07:26:24 +0000 (08:26 +0100)
commitdbd87b94aafcae214053116321497941bacc7cad
treebba8b3f7cf780405fc973f856b25fefb80d232ff
parentbffcc175676657064c44f37f90fe95d3675276fc
tdb: Refuse to load a database with hash size 0

This just ensures we reject (rather than div-by-0) a corrupt
DB with a zero hash size.

Found with american fuzzy lop

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Dec 18 08:26:25 CET 2015 on sn-devel-144
lib/tdb/common/open.c