idmap_tdb: Harden idmap_tdb_common_unixid_to_sid
commitb64835a109b112543cc82a50c2dbb4ece5149ec6
authorVolker Lendecke <vl@samba.org>
Wed, 30 Nov 2016 17:43:44 +0000 (30 18:43 +0100)
committerVolker Lendecke <vl@samba.org>
Fri, 16 Dec 2016 16:38:19 +0000 (16 17:38 +0100)
treefd2043619e11eb6100880236ff6796eb4db212df
parent5ee846fabf809b1b0070d53bef56f3735ac1e9bb
idmap_tdb: Harden idmap_tdb_common_unixid_to_sid

A non-null terminated record would make string_to_sid read beyond the
end of allocated data.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/winbindd/idmap_tdb_common.c