1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00
sortix--sortix/utils/cfi-test.c
2016-06-13 13:04:54 +02:00

18 lines
229 B
C

#include <stdio.h>
#include <string.h>
#pragma GCC optimize 0
void gpf(void)
{
char buffer[16];
memset(buffer, 0x11, 128); /* buffer overrun */
}
int main(void)
{
printf("begun\n");
gpf();
printf("done\n");
return 42;
}