Issue 110215
Summary SHA2 ASAN interceptors on FreeBSD and NetBSD
Labels new issue
Assignees
Reporter botovq
    The SHA2 `*_{Init,Update,Final,Transform}()` functions on FreeBSD ([manual][1]) and NetBSD (cf [manual][2]) collide with functions of the same name [in OpenSSL][3]. The signatures are incompatible (return types and contexts).

This leads to undesirable runtime failures when using `-fsanitize=-address` in combination with `-lcrypto`.

Not all of the below are problematic for both FreeBSD and NetBSD, but should probably be audited in detail and potentially be removed.

https://github.com/llvm/llvm-project/blob/880ee48d5c9d88be1c611451e84f16eafcebd1a6/compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h#L564-L570

See https://github.com/libressl/portable/issues/1098, https://github.com/openssl/openssl/issues/25456, and https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281685 for more details.

Cc: @krytarowski @devnexen

[1]: https://man.freebsd.org/cgi/man.cgi?query=SHA256_Init&apropos=0&sektion=0&manpath=FreeBSD+14.1-RELEASE+and+Ports&arch=default&format=html
[2]: https://man.netbsd.org/SHA256_Init.3
[3]: https://docs.openssl.org/3.0/man3/SHA256_Init/
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to