Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] Re: Bug in dvb_demux.c



Jean-Claude Repetto wrote:
> 
> I have found a bug in the software demultiplexer of the DVB driver.
> The input buffer is passed by reference to the 
> dvb_dmx_swfilter_section_feed function.
> This function clears a part of the buffer, with the statement :
> memset(buf, 0, DVB_DEMUX_MASK_MAX);
> regardless of the size of the section.
> 
> As a result, when a section is shorter than DVB_DEMUX_MASK_MAX, the data 
> of the next section are cleared.
...
> I don't know exactly why it is necessary to clear the buffer, but if it 
> is, I suggest the following patch :

I think the whole memset() was bogus, and thus I removed it.

Thanks a lot for tracking this down!


Johannes


-- 
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe linux-dvb" as subject.



Home | Main Index | Thread Index