If the namelist, which set_namearray receives, is not terminated with a '/', we try to read the next character behind the string termination '\0'. In the case that the namelist is followed by a (more or less) valid string, we could produce several effects like unintentional vetoed, hidden or non-oplocked files or failures like: "Conversion error: Incomplete multibyte sequence(..." Sent patch to samba-technical for discussion.
Created attachment 9837 [details] git-am fix for master. Patch that went into master.
Created attachment 9838 [details] Additional git-am fix for master. This additional patch isn't necessary, but cleans up the internal logic of the while loops so they are correct. Jeremy.
Both patchsets apply cleanly to 4.0.next and 4.1.next. Jeremy.
Comment on attachment 9837 [details] git-am fix for master. ACK for 4.1 and 4.0
Michael, can you look at the logic fix also ? I'm a fan of making this code utterly robust (belt and braces :-). Jeremy.
(In reply to comment #5) > Michael, can you look at the logic fix also ? I'm a fan of making this code > utterly robust (belt and braces :-). > > Jeremy. I am currently looking at the patch. I will review+push to master once I am confident. I am not certain yet, that this improvement should go into the bugfix releases. Cheers - Michael
Ah fair enough. I'm happy if you just push to master then :-). Jeremy.
Re-assigning to Karolin to push to 4.1.next and 4.0.next. Jeremy.
(In reply to comment #8) > Re-assigning to Karolin to push to 4.1.next and 4.0.next. > Jeremy. Do we need to clarify what exactly to bring to 4.X.next ? Björn original patch went into master as 8f46b130c5c796d66d26982f5cd99c52f7c8ece1 And Jeremy's on-top patch went into master with minor update by me (compared to the attached version) as 4f59580331b934b183c3344da57f2002d88d4512 Do we pick both? I am OK with both. Michael
Comment on attachment 9837 [details] git-am fix for master. superseded by master patch 8f46b130c5c796d66d26982f5cd99c52f7c8ece1
Comment on attachment 9838 [details] Additional git-am fix for master. superseded by master patch 4f59580331b934b183c3344da57f2002d88d4512
Pushed both patches to autobuild-[v4-1|4-0]-test.
(In reply to comment #12) > Pushed both patches to autobuild-[v4-1|4-0]-test. Pushed to both branches. Closing out bug report. Thanks!