[FFmpeg-devel] [PATCH] ffmdec: sanitize codec parameters
Michael Niedermayer
michael at niedermayer.cc
Sat Nov 19 03:14:33 EET 2016
On Fri, Nov 18, 2016 at 10:35:29PM +0100, Andreas Cadhalpun wrote:
> On 18.11.2016 02:40, Michael Niedermayer wrote:
> > On Thu, Nov 17, 2016 at 07:35:01PM +0100, Andreas Cadhalpun wrote:
> >> + if (size < 0 || size >= FF_MAX_EXTRADATA_SIZE) {
> >> + av_log(s, AV_LOG_WARNING, "Invalid extradata size %d\n", size);
> >
> > i think this and possibly others should be a hard failure
> > or why would a invalid extradata_size be ok ?
>
> The decoder might still be able to work.
> What would be the advantage of a hard failure?
the advantage of stoping clearly invalid data early
The decoder runs on a seperate machine with ffm possibly. The file
just gets demuxed and sent over the network. The warning hinting to
the issue is on the sending side. The decoder failure at the receiver
i didnt try but if iam not mixing things up that would be confusing
neither side would fully understand whats going on without the other
Does this corrupted but working data occur in practice?
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Freedom in capitalist society always remains about the same as it was in
ancient Greek republics: Freedom for slave owners. -- Vladimir Lenin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20161119/1ce3923b/attachment.sig>
More information about the ffmpeg-devel
mailing list