This commit is contained in:
Valentin Brandl
2022-09-21 17:54:15 +02:00
parent 8bb20127a9
commit 753172cdc3
6 changed files with 41 additions and 3 deletions

17
assets/logic.c Normal file
View File

@ -0,0 +1,17 @@
#include<stdio.h>
#include<string.h>
void foo(char *input) {
int is_logged_in = 0;
char buf[50];
strcpy(buf, input);
if (is_logged_in) {
puts("logged in!!1!");
} else {
puts("not logged in");
}
}
int main(int argc, char **argv) {
foo(argv[1]);
}

BIN
assets/stack.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
assets/stack_overflow.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB