Hacker News new | past | comments | ask | show | jobs | submit login

How is this called a Buffer Overflow and not a logic error? you are not overflowing the buffer and rewriting the registers, but taking the user input in the same buffer that holds the password and writing the user input from beginning of the buffer. It is not overflowing anything, only wrong bound check for user input. You can't write past the buffer, Rust will halt the program and throw an error.

It could be more interesting to have another buffer holding user input and then overflow it and corrupt the password buffer.

I am curious if that is possible without using unsafe?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: