Use ldb_dn_from_ldb_val to avoid possible over-run of the value.
authorAndrew Bartlett <abartlet@samba.org>
Mon, 27 Oct 2008 02:32:23 +0000 (13:32 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 4 Nov 2008 05:06:56 +0000 (16:06 +1100)
commit9381a78c391bcccd5eddc159a5d3a3e12d19fde3
tree81d9b89532c4e6019e3417b864f68b127fbb71ac
parentadf016e11946a354a140b1c0ed7789160e3af2aa
Use ldb_dn_from_ldb_val to avoid possible over-run of the value.

The ldb_val is length-limited, and while normally NULL terminated,
this avoids the chance that this particular value might not be, as
well as avoiding a cast.

Andrew Bartlett
source4/dsdb/samdb/ldb_modules/linked_attributes.c
source4/dsdb/samdb/ldb_modules/normalise.c
source4/lib/ldb/common/attrib_handlers.c
source4/lib/ldb/common/ldb_ldif.c
source4/lib/ldb/common/ldb_match.c
source4/lib/ldb/ldb_map/ldb_map.c
source4/rpc_server/samr/dcesrv_samr.c