Ensure that convert_string_allocate() allocates 2 extra
authorJeremy Allison <jra@samba.org>
Fri, 1 Feb 2008 22:54:19 +0000 (14:54 -0800)
committerJeremy Allison <jra@samba.org>
Fri, 1 Feb 2008 22:54:19 +0000 (14:54 -0800)
commitdd3441022775f24cf66bd75daf899e92492eaeec
tree432d724ffadcf71e4463ed98e9dff555febd27e0
parent8957254118832d07440bf244006f216ac5b38dc2
Ensure that convert_string_allocate() allocates 2 extra
bytes and null terminates them to ensure NDR wire-reads
of string types are always null terminated. Bug found by
Volker after great pain :-).
Jeremy.
source/lib/charcnv.c