diff options
author | Andrew Bartlett <abartlet@samba.org> | 2014-09-02 10:47:57 +1200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2014-09-08 07:26:34 +0200 |
commit | c0dfda35f7d94091150b109e8308f2f1f9c0efa7 (patch) | |
tree | d8088381d24f2a97e701801350ea6b47e5a1abe0 /python/samba/netcmd/user.py | |
parent | 3cd5e672264c951d1960e6cefc4ad590a1ea180d (diff) | |
download | samba-c0dfda35f7d94091150b109e8308f2f1f9c0efa7.tar.gz samba-c0dfda35f7d94091150b109e8308f2f1f9c0efa7.tar.xz samba-c0dfda35f7d94091150b109e8308f2f1f9c0efa7.zip |
passdb: Avoid use-after-free when setting a plaintext password
The issue here is that pdb_set_plaintext_passwd() re-used the memory from pdb_get_pw_history() as input
We need to free this after we copy and set it.
Found by AddressSanitizer
Andrew Bartlett
Change-Id: I4e148e23ccbbe5444c969ff8f91709791c7696bb
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Kamen Mazdrashki <kamenim@samba.org>
Diffstat (limited to 'python/samba/netcmd/user.py')
0 files changed, 0 insertions, 0 deletions