While testing ldbsearch with american fuzzy lop, I found these integer overflows in TDB, showing up mostly as short records in the subsequent ldb_parse(). The attached patches appear to address those.
Careful review by a TDB developer most welcome.
Not assigned to the TDB product because we don't have a 'core samba developers group' there.
Created attachment 11599 [details]
patch for master
fixed in dbd87b94aafcae214053116321497941bacc7cad (2015-12-18)