[PATCH] D68431: [msan] Add interceptors: crypt, crypt_r.

Evgenii Stepanov via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 10 13:46:32 PDT 2019


Sure, done in r374448, let me know if it did not help.
My man page says that only this is necessary:
       #define _XOPEN_SOURCE       /* See feature_test_macros(7) */
       #include <unistd.h>
I don't define _XOPEN_SOURCE, maybe that's the real problem?

On Thu, Oct 10, 2019 at 10:06 AM Ulrich Weigand via Phabricator
<reviews at reviews.llvm.org> wrote:
>
> uweigand added a comment.
>
> The Posix/crypt.cpp test case fails on my system with:
>
>   /home/uweigand/llvm/llvm-head/projects/compiler-rt/test/sanitizer_common/TestCases/Posix/crypt.cpp:18:15: error: use of undeclared identifier 'crypt'
>       char *p = crypt("abcdef", "$1$");
>
> I believe the test case is missing a
>
>   #include <crypt.h>
>
>
> Repository:
>   rL LLVM
>
> CHANGES SINCE LAST ACTION
>   https://reviews.llvm.org/D68431/new/
>
> https://reviews.llvm.org/D68431
>
>
>


More information about the llvm-commits mailing list