#11 tcp read fix

closed-fixed
Joe Drew
Patches (14)
5
2011-10-01
2005-03-17
Eric Kinzie
No

read_from_fd() in mad.c assumes that the buffer passed
to read() is always filled. While this might be a
reasonable assumption when reading from disk, it is
seldom the case when reading from a tcp socket.

Discussion

  • Eric Kinzie
    Eric Kinzie
    2005-03-17

    unified diff

     
    Attachments
  • Vadim Druzhin
    Vadim Druzhin
    2007-09-11

    Logged In: YES
    user_id=1888199
    Originator: NO

    This patch breaks playing from stdin ('-' command line option),
    it causes infinite loop at EOF.

     
    • status: open --> closed-fixed