You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Newlines are not being removed from any user input (both for username and password). Therefore, unless they are both 32 bytes long, they will never match the actual fields because of the '\n' difference.
I suggest adding this after both fgets calls: readbuff[strcspn(readbuff, "\n")] = 0;
The text was updated successfully, but these errors were encountered:
SharonBrizinov
changed the title
Newlines are not being removed from user input fields
lab6b (ASLR) | Newlines are not being removed from user input fields
Oct 26, 2019
MBE/src/lab06/lab6B.c
Line 120 in 2b0b677
Newlines are not being removed from any user input (both for username and password). Therefore, unless they are both 32 bytes long, they will never match the actual fields because of the '\n' difference.
I suggest adding this after both fgets calls:
readbuff[strcspn(readbuff, "\n")] = 0;
The text was updated successfully, but these errors were encountered: