v0.0.29 - Feather firmware: auto-approve sign_event and always return explicit JSON-RPC errors for unhandled/oversized requests
This commit is contained in:
15
firmware/feather_s3_tft/main/secure_mem.c
Normal file
15
firmware/feather_s3_tft/main/secure_mem.c
Normal file
@@ -0,0 +1,15 @@
|
||||
#include "secure_mem.h"
|
||||
|
||||
void secure_memzero(void *ptr, size_t len)
|
||||
{
|
||||
volatile unsigned char *p = (volatile unsigned char *)ptr;
|
||||
|
||||
if (p == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
while (len > 0) {
|
||||
*p++ = 0;
|
||||
len--;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user