Build fix: remove cleanse_ctr
Reviewed-by: Andy Polyakov <appro@openssl.org>
This commit is contained in:
parent
104ce8a9f0
commit
6a99fde46b
12
crypto/mem.c
12
crypto/mem.c
@ -140,18 +140,6 @@ void *CRYPTO_malloc(size_t num, const char *file, int line)
|
|||||||
ret = malloc(num);
|
ret = malloc(num);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef OPENSSL_CPUID_OBJ
|
|
||||||
/*
|
|
||||||
* Create a dependency on the value of 'cleanse_ctr' so our memory
|
|
||||||
* sanitisation function can't be optimised out. NB: We only do this for
|
|
||||||
* >2Kb so the overhead doesn't bother us.
|
|
||||||
*/
|
|
||||||
if (ret && (num > 2048)) {
|
|
||||||
extern unsigned char cleanse_ctr;
|
|
||||||
((unsigned char *)ret)[0] = cleanse_ctr;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user