ldb: Be strict about talloc_memdup() and passed in buffers in ldb_dn_set_component()
authorAndrew Bartlett <abartlet@samba.org>
Sun, 3 Jan 2016 23:12:37 +0000 (12:12 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 5 Jan 2016 20:29:06 +0000 (21:29 +0100)
commit084bab5a06fda352df5c8b902aa36068b7bcc396
treed3fc942374274af4300ba9713dd446b6e17f8500
parentff94a01e19604ae6275672e70edd25121df79bbf
ldb: Be strict about talloc_memdup() and passed in buffers in ldb_dn_set_component()

This ensures we do not over-read the source buffer, but still NUL terminate.

This may be related to debuain bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=808769

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
lib/ldb/common/ldb_dn.c