[PATCH] reject a tdb with hash size of 0

Andrew Bartlett abartlet at samba.org
Thu Dec 17 02:18:44 UTC 2015


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

This was one of the first issues I found that lead to the offset bugs
seen here:
https://bugzilla.samba.org/show_bug.cgi?id=11603

Please review/push.

Thanks,

Andrew Bartlett

-- 
Andrew Bartlett
https://samba.org/~abartlet/
Authentication Developer, Samba Team         https://samba.org
Samba Development and Support, Catalyst IT   
https://catalyst.net.nz/services/samba





-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-tdb-Refuse-to-load-a-database-with-hash-size-0.patch
Type: text/x-patch
Size: 1001 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20151217/5d007a0e/0001-tdb-Refuse-to-load-a-database-with-hash-size-0.bin>


More information about the samba-technical mailing list