smbd: Properly protect against invalid lock data
authorVolker Lendecke <vl@samba.org>
Wed, 11 Sep 2013 12:04:58 +0000 (12:04 +0000)
committerJeremy Allison <jra@samba.org>
Thu, 12 Sep 2013 01:26:45 +0000 (03:26 +0200)
commit8f411425f6649422cb5ab94ec6ca392a02ec5ee5
tree3c58f6eb969db25f47634e233872d4d4e9d77ec8
parent776db7d38597a29536e4127837ffa3b4f4ce35ab
smbd: Properly protect against invalid lock data

If someone messes with brlock.tdb and inserts an invalid record length,
this will lead to memcpy overwriting a few bytes behind malloc'ed data.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Sep 12 03:26:45 CEST 2013 on sn-devel-104
source3/locking/brlock.c