[Bug 281685] ASAN intercepting SHA256 and MD5 causes issues with OpenSSL's EVP

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 24 Sep 2024 14:30:02 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281685

            Bug ID: 281685
           Summary: ASAN intercepting SHA256 and MD5 causes issues with
                    OpenSSL's EVP
           Product: Base System
           Version: 15.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: misc
          Assignee: bugs@FreeBSD.org
          Reporter: tb@openbsd.org

libmd has a few Init/Update/Final implementations of the same name as OpenSSL
but with incompatible signature. For FreeBSD this is at least SHA2 and MD5.
This causes issues when using ASAN, in particular in combination with EVP.

See https://github.com/libressl/portable/issues/1098 and
https://github.com/openssl/openssl/issues/25456 for an example.

I suspect defining `SANITIZER_INTERCEPT_*` for these needs to be reconsidered.

-- 
You are receiving this mail because:
You are the assignee for the bug.