dbwrap: Add overflow protection to dbwrap_record_watchers_key()
commita672379bd9a7934a2cc82ba340723044048676e8
authorVolker Lendecke <vl@samba.org>
Tue, 12 Jul 2016 13:57:29 +0000 (12 15:57 +0200)
committerVolker Lendecke <vl@samba.org>
Fri, 15 Jul 2016 14:56:13 +0000 (15 16:56 +0200)
tree6efa07782415973cf6eb11a3291f8a65241fb341
parente364e5114a9dadd546b840b533cee13e69281923
dbwrap: Add overflow protection to dbwrap_record_watchers_key()

It's highly unlinkely that this will ever kick in, because our current tdb keys
are rather small, but offset calculations without overflow checks are bad.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/lib/dbwrap/dbwrap_watch.c