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.
Logged In: YES
user_id=43361
OK, here is the real patch. Forgot to check to Upload.
Proposed fix
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.