1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-29 11:21:54 +03:00
samba-mirror/source3/utils
Noel Power 24b03fd28e s3/utils: Fix double free error with smbtree
==3632==
WORKGROUP
	\\ATP
		\\ATP\IPC$           	IPC Service ()
==3632== Invalid read of size 8
==3632==    at 0x773C926: poptResetContext (in /usr/lib64/libpopt.so.0.0.0)
==3632==    by 0x773E5DD: poptFreeContext (in /usr/lib64/libpopt.so.0.0.0)
==3632==    by 0x10A8BC: main (smbtree.c:354)
==3632==  Address 0x16085e00 is 640 bytes inside a block of size 784 free'd
==3632==    at 0x4C2F1AD: free (vg_replace_malloc.c:530)
==3632==    by 0x773E6F7: poptFreeContext (in /usr/lib64/libpopt.so.0.0.0)
==3632==    by 0x10A84B: main (smbtree.c:342)
==3632==  Block was alloc'd at
==3632==    at 0x4C2FE45: calloc (vg_replace_malloc.c:711)
==3632==    by 0x773C79A: poptGetContext (in /usr/lib64/libpopt.so.0.0.0)
==3632==    by 0x10A829: main (smbtree.c:339)
==3632==

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14332
Signed-off-by: Noel Power <npower@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>

Autobuild-User(master): Noel Power <npower@samba.org>
Autobuild-Date(master): Wed Apr  1 18:51:43 UTC 2020 on sn-devel-184
2020-04-01 18:51:43 +00:00
..
async-tracker.c s3:utils: use struct initializer in async-tracker long_options 2019-04-29 16:04:28 +00:00
conn_tdb.c Spelling fixes s/emtpy/empty/ 2019-09-01 22:21:26 +00:00
conn_tdb.h utils: Move conn_tdb.c to utils/ 2019-04-12 00:37:05 +00:00
dbwrap_tool.c s3: remove now unneeded call to cmdline_messaging_context() 2019-10-24 09:33:47 +00:00
dbwrap_torture.c s3: free popt context in utils 2019-08-22 00:21:50 +00:00
debug2html.c
debugparse.c
destroy_netlogon_creds_cli.c
eventlogadm.c s3: remove now unneeded call to cmdline_messaging_context() 2019-10-24 09:33:47 +00:00
interact.c
interact.h
log2pcaphex.c s3: free popt context in utils 2019-08-22 00:21:50 +00:00
mdfind.c s3:utils: add mdfind 2019-10-09 14:35:29 +00:00
mvxattr.c s3: free popt context in utils 2019-08-22 00:21:50 +00:00
net_ads_gpo.c net_ads_gpo: remove old '#if 0' blocks 2020-01-13 23:52:26 +00:00
net_ads.c auth/kerberos: add auth4_context_{for,get}_PAC_DATA_CTR() helpers 2020-02-10 16:32:36 +00:00
net_afs.c
net_afs.h
net_cache.c gencache: Remove transaction-based tdb 2018-11-06 18:57:26 +01:00
net_conf_util.c
net_conf_util.h
net_conf.c net: Delete share ACL from 'net conf delshare' 2019-11-26 22:55:38 +00:00
net_dns.c s3:utils: Remove double error check 2018-05-24 18:07:03 +02:00
net_dns.h
net_dom.c
net_eventlog.c
net_file.c
net_g_lock.c g_lock: Change prototype of g_lock_dump 2019-11-22 23:57:47 +00:00
net_group.c
net_groupmap.c net: Use dom_sid_str_buf 2018-12-11 00:40:30 +01:00
net_help_common.c
net_help_common.h
net_help.c
net_idmap_check.c
net_idmap_check.h
net_idmap.c net idmap check: correct spelling of --force 2019-07-02 04:21:36 +00:00
net_join.c
net_lookup.c s3:utils: Use C99 initializer in functable in net_lookup 2019-01-28 10:29:23 +01:00
net_notify.c
net_printing.c Fix spelling s/formated/formatted/ 2018-05-12 02:09:26 +02:00
net_proto.h lib: Remove duplicate get_pass() prototypes 2019-12-02 21:23:34 +00:00
net_rap.c
net_registry_check.c Spelling fixes s/explicite /explicit / 2019-09-01 22:21:27 +00:00
net_registry_check.h
net_registry_util.c
net_registry_util.h
net_registry.c net: Avoid the use of g_lock_do() 2019-11-06 20:36:34 +00:00
net_rpc_audit.c
net_rpc_conf.c net: Return share name in correct case from net rpc conf showshare 2019-05-23 23:26:14 +00:00
net_rpc_printer.c
net_rpc_registry.c source3: Update all consumers of strtoul_err(), strtoull_err() to new API 2019-06-30 11:32:18 +00:00
net_rpc_rights.c
net_rpc_samsync.c net: Use dom_sid_str_buf 2018-12-20 23:40:23 +01:00
net_rpc_service.c
net_rpc_sh_acct.c
net_rpc_shell.c net: Use dom_sid_str_buf 2018-12-11 00:40:30 +01:00
net_rpc_trust.c s3:utils: Use GnuTLS RC4 in npc_rpc_trust 2019-06-27 12:54:24 +00:00
net_rpc.c s3/utils: Make sure we can negotiate protocol based on smb.conf settings 2019-12-05 17:14:47 +00:00
net_sam.c source3: Update all consumers of strtoul_err(), strtoull_err() to new API 2019-06-30 11:32:18 +00:00
net_serverid.c smbd: Remove some unused includes 2019-04-11 23:35:15 +00:00
net_share.c net rpc share allowedusers: Allow restricting shares 2018-11-30 03:35:13 +01:00
net_status.c lib: Remove #define serverid_equal server_id_equal 2019-11-06 20:36:34 +00:00
net_tdb.c net: Use share_mode_count_entries() 2019-12-17 22:40:32 +00:00
net_time.c s3/utils: net time always hardcoded to use SMB1 2019-12-05 17:14:46 +00:00
net_user.c
net_usershare.c smbdotconf: mark "usershare path" with substitution="1" 2019-11-27 10:25:36 +00:00
net_util.c libsmb: Give namequery.c its own header 2018-04-11 01:06:39 +02:00
net_vfs.c smbdotconf: mark "path" with substitution="1" 2019-11-27 10:25:33 +00:00
net.c lib: Remove duplicate get_pass() prototypes 2019-12-02 21:23:34 +00:00
net.h s3:net: add 'vfs' hierarchy with 'stream2adouble' command 2019-07-12 21:31:29 +00:00
netlookup.c
nmblookup.c s3:utils: Use C99 initializer for poptOption in nmblookup 2019-01-28 10:29:13 +01:00
ntlm_auth_diagnostics.c
ntlm_auth_proto.h
ntlm_auth.c ntlm_auth: Add type-safety instead of a simple cast 2020-01-09 18:55:36 +00:00
ntlm_auth.h
passwd_proto.h lib: Make stdin_new_passwd() static 2019-12-02 21:23:34 +00:00
passwd_util.c lib: Remove duplicate get_pass() prototypes 2019-12-02 21:23:34 +00:00
pdbedit.c lib: Remove duplicate get_pass() prototypes 2019-12-02 21:23:34 +00:00
profiles.c s3:utils: Use C99 initializer for poptOption in profiles 2019-01-28 10:29:13 +01:00
regedit_dialog.c source3: Update all consumers of strtoul_err(), strtoull_err() to new API 2019-06-30 11:32:18 +00:00
regedit_dialog.h
regedit_hexedit.c
regedit_hexedit.h
regedit_list.c
regedit_list.h
regedit_samba3.c
regedit_treeview.c
regedit_treeview.h
regedit_valuelist.c
regedit_valuelist.h
regedit_wrap.c
regedit.c lib/util/fault.c: Unify printing of the stack trace with the INTERNAL ERROR string 2020-02-27 05:09:44 +00:00
regedit.h
sharesec.c sharesec: Use ARRAY_DEL_ELEMENT() in sort_acl() 2020-03-26 14:43:31 +00:00
smbcacls.c smbcacls: Use ARRAY_DEL_ELEMENT() in sort_acl() 2020-03-26 14:43:31 +00:00
smbcontrol.c smbd: Add close-denied-share message 2020-01-15 21:25:35 +00:00
smbcquotas.c s3:utils: If share is NULL in smbcquotas, don't print it 2019-05-08 16:33:24 +00:00
smbfilter.c libsmb: Give namequery.c its own header 2018-04-11 01:06:39 +02:00
smbget.c s3: remove now unneeded call to cmdline_messaging_context() 2019-10-24 09:33:47 +00:00
smbpasswd.c lib: Remove duplicate get_pass() prototypes 2019-12-02 21:23:34 +00:00
smbtree.c s3/utils: Fix double free error with smbtree 2020-04-01 18:51:43 +00:00
split_tokens.c s3: free popt context in utils 2019-08-22 00:21:50 +00:00
status_profile_dummy.c
status_profile.c
status_profile.h
status.c lib: Remove #define serverid_equal server_id_equal 2019-11-06 20:36:34 +00:00
testparm.c s3:utils: Add weak crypto information to testparm 2020-03-19 20:46:41 +00:00
wscript_build s3:utils: Add weak crypto information to testparm 2020-03-19 20:46:41 +00:00