When "mangling method = hash" is set in smb.conf, we get the valgrind error: ==29096== Conditional jump or move depends on uninitialised value(s) ==29096== at 0x5B9870: to_8_3 /home/jra/src/samba/git/master/source3/smbd/mangle_hash.c:587 ==29096== by 0x5B9E05: hash_name_to_8_3 /home/jra/src/samba/git/master/source3/smbd/mangle_hash.c:676 ==29096== by 0x5B82F3: name_to_8_3 /home/jra/src/samba/git/master/source3/smbd/mangle.c:146 ==29096== by 0x5303B4: call_trans2findfirst /home/jra/src/samba/git/master/source3/smbd/trans2.c:2507 ==29096== by 0x547622: handle_trans2 /home/jra/src/samba/git/master/source3/smbd/trans2.c:8163 ==29096== by 0x548720: reply_trans2 /home/jra/src/samba/git/master/source3/smbd/trans2.c:8449 ==29096== by 0x58167F: switch_message /home/jra/src/samba/git/master/source3/smbd/process.c:1399 ==29096== by 0x5817DD: construct_reply /home/jra/src/samba/git/master/source3/smbd/process.c:1430 ==29096== by 0x581B4F: process_smb /home/jra/src/samba/git/master/source3/smbd/process.c:1503 ==29096== by 0x58326A: smbd_server_connection_read_handler /home/jra/src/samba/git/master/source3/smbd/process.c:2111 ==29096== by 0x5832C7: smbd_server_connection_handler /home/jra/src/samba/git/master/source3/smbd/process.c:2126 ==29096== by 0x8E5A59: run_events /home/jra/src/samba/git/master/source3/lib/events.c:148 This is due to the charset array allocated in init_chartest() being allocated by MALLOC, but only some elements of it being set after allocation. Fix is to memset to zero after allocation. Patch follows. Jeremy.
Created attachment 5386 [details] git-am fix for 3.5.0rc3
Created attachment 5387 [details] git-am fix for 3.4.6.
Created attachment 5388 [details] git-am fix for 3.3.1.. Volker, please re-assign to Karolin for inclusion once you've reviewed. Thanks ! Jeremy.
Pushed to all branches. Closing out bug report. Thanks!