Created attachment 15132 [details] ASAN error report ==1924==ERROR: AddressSanitizer: stack-use-after-scope on address 0x7ffe63f873d0 at pc 0x7fb99dae1733 bp 0x7ffe63f86a00 sp 0x7ffe63f861a8 READ of size 24 at 0x7ffe63f873d0 thread T0 #0 0x7fb99dae1732 (/usr/lib/x86_64-linux-gnu/libasan.so.4+0x79732) #1 0x7fb99cfe5549 in memcpy /usr/include/x86_64-linux-gnu/bits/string_fortified.h:34 #2 0x7fb99cfe5549 in ndr_push_bytes ../../librpc/ndr/ndr_basic.c:729 #3 0x7fb99cfe5646 in ndr_push_array_uint8 ../../librpc/ndr/ndr_basic.c:754 #4 0x7fb99a69dd1b in ndr_push_netr_ChallengeResponse librpc/gen_ndr/ndr_netlogon.c:462 #5 0x7fb99a6c5fab in ndr_push_netr_NetworkInfo librpc/gen_ndr/ndr_netlogon.c:556 #6 0x7fb99a6c749d in ndr_push_netr_LogonLevel librpc/gen_ndr/ndr_netlogon.c:783 #7 0x7fb99a7222de in ndr_push_netr_LogonSamLogonEx librpc/gen_ndr/ndr_netlogon.c:16547 #8 0x7fb99c982c97 in dcerpc_binding_handle_call_send ../../librpc/rpc/binding_handle.c:416 To reproduce: * configure with --address-sanitizer enabled * make TESTS="samba3.blackbox.rpcclient_samlogon" tests
Fixed in master for 4.11, commit a5d1f4a8f9c5
Re-opened as it should be backported to V4.10
Created attachment 15150 [details] Proposed patch for V4.10 CI: https://gitlab.com/samba-team/devel/samba/pipelines/61325993
Removing team restriction, rpcclient is not security-relevant. Please pick for Samba 4.10.
(In reply to Andrew Bartlett from comment #4) Pushed to autobuild-v4-10-test.
(In reply to Karolin Seeger from comment #5) Pushed to v4-10-test. Closing out bug report. Thanks!