xref: /haiku/src/tests/system/libroot/os/stack_protector_test.c (revision b5a859ad6285b14769a5ede7b81e4261044faf7e)
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <string.h>
4 
5 void get_input(char *data)
6 {
7     strcpy(data, "01234567");
8 }
9 
10 
11 int main(void)
12 {
13     char buffer[8];
14     get_input(buffer);
15     return buffer[0];
16 }
17