#30 mr.q. -- networking off-by-one

closed-fixed
Joe Drew
Networking (5)
5
2004-09-28
2004-02-16
Anonymous
No

file: network.c
function: ftp_get_reply
condition in for loop filling char array answer have to be "i < 1023 && c != '\n'" because of answer declared as "char answer[1024];". otherwise it is possible to cause "answer[1024] = 0;" while adding string terminator.

Discussion

  • Logged In: YES
    user_id=712646

    thanks, fixed in subversion

     
    • status: open --> closed-fixed