[PATCH][WIP] Fix talloc string handling in PIDL-python and so samba-tool demote

Andrew Bartlett abartlet at samba.org
Fri Apr 22 04:07:25 UTC 2016


I was pulling my hair out (figurtivly) trying to work out why our
'samba-tool domain demote' failed, until I realised our PIDL-generated
python code kept references to string values that had gone out of
scope, and so had been re-used by python.

I need to add a string.py test like the integer.py and array.py we
already have, but here is the patch for comment in the meantime.

Andrew Bartlett
-- 
Andrew Bartlett
https://samba.org/~abartlet/
Authentication Developer, Samba Team         https://samba.org
Samba Development and Support, Catalyst IT   
https://catalyst.net.nz/services/samba





-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-samba-tool-domain-demote-Fix-error-handling-and-erro.patch
Type: text/x-patch
Size: 1633 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160422/fa6db4ee/0001-samba-tool-domain-demote-Fix-error-handling-and-erro.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-pidl-Correct-string-handling-to-use-talloc-and-be-in.patch
Type: text/x-patch
Size: 5391 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160422/fa6db4ee/0002-pidl-Correct-string-handling-to-use-talloc-and-be-in.bin>


More information about the samba-technical mailing list