App - System

Tuesday 4 October 2016, 15:18  #1
App - System Segmentation fault
bashintoch
  • 1 posts

Hey,
I Succes the challenge but when I tried it, I experiment a really strange thing :

I have a question about the challenge : ELF32 - Stack buffer overflow basic 2

when I taped : python -c ’print("A"*127)’ | ./ch15
I have Segmentation fault

but the man of fgets affirmes that : "The fgets() function reads at most one less than the number of characters specified by size ..."

The program should read 127 char with no problem, I am right ?

Thanks before