msan2.patch 459 B

123456789101112131415161718
  1. --- a/crypto/rand/drbg_ctr.c
  2. +++ b/crypto/rand/drbg_ctr.c
  3. @@ -15,6 +15,7 @@
  4. #include "modes_local.h"
  5. #include "internal/thread_once.h"
  6. #include "rand_local.h"
  7. +#include "sanitizers.h"
  8. /*
  9. * Implementation of NIST SP 800-90A CTR DRBG.
  10. @@ -348,6 +349,7 @@ __owur static int drbg_ctr_generate(RAND_DRBG *drbg,
  11. }
  12. memset(out, 0, outlen);
  13. + __msan_unpoison(ctr->V, 16 * sizeof(char));
  14. do {
  15. if (!EVP_CipherInit_ex(ctr->ctx_ctr,