Finished stackoverflow/no-protection

This commit is contained in:
2021-08-30 22:56:18 +08:00
parent 6f60eb8de9
commit 6bec98d2e1
7 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
#include <stdio.h>
#include <string.h>
#include <unistd.h>
void SayHello(void){
char tmpName[60];
read(0, tmpName, 1000);
printf("Hello %s\n", tmpName);
}
int main(int argc, char** argv){
SayHello();
return 0;
}