Skip to content

Commit

Permalink
Build fix: remove cleanse_ctr
Browse files Browse the repository at this point in the history
Reviewed-by: Andy Polyakov <[email protected]>
  • Loading branch information
richsalz authored and Rich Salz committed Feb 25, 2016
1 parent 104ce8a commit 6a99fde
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions crypto/mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,18 +140,6 @@ void *CRYPTO_malloc(size_t num, const char *file, int line)
ret = malloc(num);
#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;
}

Expand Down

0 comments on commit 6a99fde

Please sign in to comment.