mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-04-19 14:00:19 +02:00
Signed-off-by: Tavi <tavi@divested.dev> Co-authored-by: =?UTF-8?q?Christian=20G=C3=B6ttsche?= <cgzones@googlemail.com>
13 lines
240 B
C
13 lines
240 B
C
#include <stdlib.h>
|
|
#include <wchar.h>
|
|
|
|
#include "test_util.h"
|
|
|
|
OPTNONE int main(void) {
|
|
wchar_t *buffer = malloc(32 * sizeof(wchar_t));
|
|
if (!buffer) {
|
|
return 1;
|
|
}
|
|
wmemset(buffer, L'\U0001F642', 16);
|
|
return 0;
|
|
}
|