s3-lib/util: fix read across end of namelist string
commit9dbafdc0bfb10b386415c304727fd64e9c35c956
authorBjörn Baumbach <bb@sernet.de>
Mon, 7 Apr 2014 11:46:42 +0000 (7 13:46 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 29 Apr 2014 08:20:28 +0000 (29 10:20 +0200)
treece8dd9c891ca85cdf6421152e57d470f2e8faf72
parentbb79bdb97b97c72a79727d3dbbd67c26f4938bec
s3-lib/util: fix read across end of namelist string

If the namelist is not terminated with a '/', we try to read
the next character after the string termination '\0'.

Signed-off-by: Björn Baumbach <bb@sernet.de>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Apr  8 21:44:16 CEST 2014 on sn-devel-104
(cherry picked from commit 8f46b130c5c796d66d26982f5cd99c52f7c8ece1)

Fix bug #10544 - s3-lib/util: set_namearray reads across end of namelist
string.
source3/lib/util.c