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.
Log in to post a comment.