feat: task 2 for sheet6

This commit is contained in:
Unbreathable
2026-06-04 18:58:56 +02:00
parent 58553b688a
commit 4ff7e162ac
8 changed files with 14 additions and 1 deletions

1
sheet06/a2/stack-a.txt Normal file
View File

@@ -0,0 +1 @@
The gets function reads into a buffer with 128 bytes from stdin. So to create a buffer overflow, I just need to put in 128 characters (all of the A) and then what we want to be written where the 32 bit integer is at the end (since it's behind the buffer inside of the struct).