mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-05 20:13:44 +02:00
Even more clever... and would crash if something weird happened, which is desirable.
This commit is contained in:
parent
befc50ac3a
commit
404b7a5493
1 changed files with 1 additions and 1 deletions
|
@ -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<volatile uint8_t *>(ptr)[0] | reinterpret_cast<volatile uint8_t *>(ptr)[len-1]) != 0)
|
||||
throw BadAllocException;
|
||||
burn(ptr, len);
|
||||
}
|
||||
|
||||
static unsigned long _Utils_itoa(unsigned long n, char *s)
|
||||
|
|
Loading…
Add table
Reference in a new issue