s3-lib/util: fix read across end of namelist string
commit9057b426d232638dcb1374724023aa95f4e86081
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:19:09 +0000 (29 10:19 +0200)
treea6293ee5867c33e4a80d523c9f5c6b9a32a09277
parent0583bf5ca1446bd00943a888a3cf877d8d4c52e8
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