hardened_malloc/test/memset_valid_mismatched.c
Tavi c0b4033769
perform size checks on memcpy/memmove/memset
Signed-off-by: Tavi <tavi@divested.dev>
2025-03-23 17:41:18 -04:00

13 lines
209 B
C

#include <stdlib.h>
#include <string.h>
#include "test_util.h"
OPTNONE int main(void) {
char *buffer = malloc(32);
if (!buffer) {
return 1;
}
memset(buffer, 'a', 16);
return 0;
}