ldb: Do not read beyond the end of the extended DN component when printing
authorAndrew Bartlett <abartlet@samba.org>
Tue, 27 Aug 2019 01:16:18 +0000 (13:16 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 27 Aug 2019 04:44:41 +0000 (04:44 +0000)
commita8a3cef3a768aaff01227dd7b229fb7b3aef926f
tree5f286d1069ac8177fc5d44ed8e31a5401e544f49
parent52bd2dde5ae809ecc115f7087e367327f4771e73
ldb: Do not read beyond the end of the extended DN component when printing

The print functions used in Samba NULL terminate, but do not assume they will

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14049

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
lib/ldb/common/ldb_dn.c