Ensure that convert_string_allocate() allocates 2 extra
commitaab736e6079729b3f3ab653674834e3f1305d456
authorJeremy Allison <jra@samba.org>
Fri, 1 Feb 2008 22:23:54 +0000 (1 14:23 -0800)
committerJeremy Allison <jra@samba.org>
Fri, 1 Feb 2008 22:23:54 +0000 (1 14:23 -0800)
tree10bcdef1ba2233fbf3cdcc2a89a2d1f4770c0857
parent7dbfc7bdc65314466a83e8121b35c9bcb24b2631
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