[PATCH] smbpasswd - fix crashes on invalid input.

Jeremy Allison jra at samba.org
Thu Dec 12 11:11:23 MST 2013


Fix for bug #10320, found by Joonas @ Codenomicon.

---------------------------------------------
# echo test | /opt/superdemo/samba/bin/smbpasswd -a test
New SMB password:
Retype new SMB password:Segmentation fault
---------------------------------------------

Oops :-).

Problem is callers of get_pass() don't cope
with NULL return.

Please review + push if appropriate.

Thanks !

Jeremy.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-s3-smbpasswd-fix-crashes-on-invalid-input.patch
Type: text/x-diff
Size: 3425 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20131212/8281aebf/attachment.patch>


More information about the samba-technical mailing list