Menu

#18 read from network fails

closed-fixed
Joe Drew
5
2004-09-27
2002-11-11
No

The use of the read() system call in mad.c is invalid.
The return value must always be checked, because it
says how many bytes was actually read, which can be
less that the requested (and especially will be when
the stream is from the network).

Attached patch fixes this.

Discussion

  • Lars Christensen

    Logged In: YES
    user_id=43361

    OK, here is the real patch. Forgot to check to Upload.

     
  • Lars Christensen

    Proposed fix

     
  • Stephen Depooter

    • status: open --> closed-fixed
     
  • Stephen Depooter

    Logged In: YES
    user_id=712646

    Another report for the same read return value :)

    A patch has been applied to my subversion tree and I hope to
    coordinate a release inthe near future with it.

     

Log in to post a comment.