#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

  • Stephen Depooter

    Logged In: YES
    user_id=712646

    thanks, fixed in subversion

     
  • Stephen Depooter

    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks