From 404b7a5493490c0c18a3cfeeee2a8e9f9f1b2797 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Thu, 2 Jul 2020 13:58:31 -0700 Subject: [PATCH] Even more clever... and would crash if something weird happened, which is desirable. --- core/Utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/Utils.cpp b/core/Utils.cpp index 5ff7063fb..01e54e25a 100644 --- a/core/Utils.cpp +++ b/core/Utils.cpp @@ -106,7 +106,7 @@ void burn(volatile void *ptr, unsigned int len) // zeroing operation above, as burn() is used to erase secrets and other // sensitive data. if ((reinterpret_cast(ptr)[0] | reinterpret_cast(ptr)[len-1]) != 0) - throw BadAllocException; + burn(ptr, len); } static unsigned long _Utils_itoa(unsigned long n, char *s)