mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
18 lines
229 B
C
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;
|
|
}
|