[FFmpeg-devel] [PATCH] fix crash in realmedia demuxer

Ronald S. Bultje rsbultje
Tue Dec 23 13:49:50 CET 2008


Hi,

On Tue, Dec 23, 2008 at 5:31 AM, Jai Menon <jmenon86 at gmail.com> wrote:
> The segfault is observed when sub packet size is zero. I have
> absolutely no clue what that field is supposed
> to be so I dunno if it can be applied as is. maybe rmdec.c maintainer knows?
> anyway, attached patch "fixes" the issue.

In rm_read_audio_stream_info():

            if(sub_packet_size <= 0){
                av_log(s, AV_LOG_ERROR, "sub_packet_size is invalid\n");
                return -1;
            }

I assume you removed that check and didn't send a patch for it (or did
I miss it?)?

In any case, I've seen the samples and thanks for looking at it, I was
intending to do that at some point. :-).

Ronald




More information about the ffmpeg-devel mailing list