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)