I will be attaching a patch for this. lp_parm_const_string returns NULL if the parameter isn't present. talloc recently changed to not allocate an empty string for NULL provided strings. This caused the current checks for out of memory type situations to incorrectly trigger. The patch provided fixes this.
Created attachment 16435 [details] Patch which fixes the problem. Working through CI on gitlab.com right now. I believe I am following the new procedure correctly. https://gitlab.com/treveradams/samba.git is my branch with the fix pushed.
Created attachment 16475 [details] git-am fix for master. Trever, I think this version is clearer to read. If you're happy, can you re-push to your CI and I'll get second Team review done for this. Thanks ! Jeremy.
FYI, once applied it's easier to see the changes doing: git show -b
(In reply to Jeremy Allison from comment #3) Thank you. I agree. This version you have made is much better. It has been pushed.
This bug was referenced in samba master: 1c9add54750cb7f2b49be69a548ce8bdb15e7ac2
Created attachment 16482 [details] git-am fix for 4.14.rcNext, 4.13.next, 4.12.next. Cherry-picked from master.
Re-assigning to Karolin for inclusion in 4.14.next, 4.13.next, 4.12.next.
(In reply to Jeremy Allison from comment #7) Pushed to autobuild-v4-{14,13,12}-test.
This bug was referenced in samba v4-13-test: a04f19ecdd30fc26be3eb0c2f7f169639a52dd6b
This bug was referenced in samba v4-12-test: 88ee4160e886cfc18dae58930dd0af382537edc6
This bug was referenced in samba v4-14-test: 1c02f82ec6f179e4dc6b66fd3d76bae955e781fe
Pushed to alle branches. Closing out bug report. Thanks!
This bug was referenced in samba v4-13-stable (Release samba-4.13.5): a04f19ecdd30fc26be3eb0c2f7f169639a52dd6b
This bug was referenced in samba v4-14-stable (Release samba-4.14.0): 1c02f82ec6f179e4dc6b66fd3d76bae955e781fe
This bug was referenced in samba v4-12-stable (Release samba-4.12.12): 88ee4160e886cfc18dae58930dd0af382537edc6