mirror of
https://github.com/trustedsec/LLVM-Obfuscation-Experiments
synced 2026-06-08 17:57:15 +00:00
16 lines
314 B
C
16 lines
314 B
C
/*
|
|
* 'Burn' a dynamically allocated string, in the sense of destroying
|
|
* it beyond recovery: overwrite it with zeroes and then free it.
|
|
*/
|
|
|
|
#include "defs.h"
|
|
#include "misc.h"
|
|
|
|
void burnstr(char *string)
|
|
{
|
|
if (string) {
|
|
smemclr(string, strlen(string));
|
|
sfree(string);
|
|
}
|
|
}
|