s3: smbd: Change the function signature of srvstr_push() from returning a length...
authorJeremy Allison <jra@samba.org>
Tue, 26 Aug 2014 00:11:58 +0000 (17:11 -0700)
committerDavid Disseldorp <ddiss@samba.org>
Mon, 15 Sep 2014 23:56:54 +0000 (01:56 +0200)
commit0519088c53b201b7ca1f144f3f2da052c612c0e7
tree59d41b8d7869877d0c8579fb2663817a618f9f84
parentc7b89bb9e5531be378c1b71fa7165f3ce74c83bb
s3: smbd: Change the function signature of srvstr_push() from returning a length to returning an NTSTATUS with a length param.

srvstr_push_fn() now returns an NTSTATUS reporting any
string conversion failure.

We need to get serious about returning character set conversion errors
inside smbd.

Bug 10775 - smbd crashes when accessing garbage filenames

https://bugzilla.samba.org/show_bug.cgi?id=10775

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
lib/util/samba_util.h
lib/util/string_wrappers.h
source3/include/safe_string.h
source3/modules/vfs_default.c
source3/smbd/lanman.c
source3/smbd/proto.h
source3/smbd/reply.c
source3/smbd/srvstr.c
source3/smbd/trans2.c