Created attachment 15130 [details]
ASAN error report
==13640==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60b000012165 at pc 0x7fd12c0dcf54 bp 0x7fffdd10ff30 sp 0x7fffdd10f6d8 READ of size 22 at 0x60b000012165 thread T0 #0 0x7fd12c0dcf53 (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xaff53)
#1 0x7fd1298d9da1 in srprs_str ../../source3/lib/srprs.c:52
#2 0x5586f9d3b225 in check_tdb_action ../../source3/utils/net_registry_check.c:737
To reproduce configure with --address-sanitizer option enabled and run.
make TESTS="samba3.blackbox.net" test
This looks like something to fix for robustness, but it is a local tool operating on the registry tdb files, those are privileged in any case.
This is the same issue as https://bugzilla.samba.org/show_bug.cgi?id=13842
I have a fix, doing tests, CI work now.
*** This bug has been marked as a duplicate of bug 13842 ***