Skip to content

Commit 1420f41

Browse files
committed
fgets is actually used, update docs
1 parent c74d7be commit 1420f41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

buffer_overflow/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ https://youtu.be/oS2O75H57qU
88

99
One of the simplest "pwn" attacks is a buffer overflow. The idea is that a faulty program has allocated a buffer of a certain size, but allows you to write more than that size.
1010

11-
For example, `input_buffer` is only 16 bytes, but `gets` allows you to input as many characters as you want. So at some point you are writing over memory you are not supposed to, and we can use this to our advantage!
11+
For example, `input_buffer` is only 16 bytes, but `fgets` is called in a way that allows up to 32 bytes to be read. So at some point you are writing over memory you are not supposed to, and we can use this to our advantage!
1212

1313
### The Stack
1414

0 commit comments

Comments
 (0)