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