[MPlayer-dev-eng] reading beyond EOF in some demuxers

Dmitry Baryshkov mitya at school.ioffe.ru
Wed Sep 10 16:49:36 CEST 2003


Hello!
While trying to add FLAC decoding support, I found, that some demuxers
(audio(WAV part), rawaudio, and even ds_read_packet from demuxer.c)
didn't check, how many bytes stream_read returned, thus providing to
decoders ability to read after EOF :). Attached patch (hopefully) fixes
it. Is it OK to commit? Or realloc'ing in resize_demux_packet isn't good
and it is better to simply change dp->len ?
-- 
With best wishes
Dmitry Baryshkov



-------------- next part --------------
A non-text attachment was scrubbed...
Name: correct_packet_size.diff
Type: text/x-patch
Size: 1852 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20030910/84dfce7b/attachment.bin>


More information about the MPlayer-dev-eng mailing list