[FFmpeg-devel] [PATCH] avcodec/avcodec: Limit the number of side data elements per packet
Michael Niedermayer
michael at niedermayer.cc
Fri May 12 15:18:49 EEST 2017
On Thu, May 11, 2017 at 01:57:01PM +0200, Clément Bœsch wrote:
> On Thu, May 11, 2017 at 01:01:36PM +0200, Michael Niedermayer wrote:
> > Fixes: 1293/clusterfuzz-testcase-minimized-6054752074858496
> >
> > Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
> > Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> > ---
> > libavcodec/avcodec.h | 8 ++++++++
> > libavcodec/avpacket.c | 5 ++++-
> > 2 files changed, 12 insertions(+), 1 deletion(-)
> >
> > diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
> > index df6d2bc748..173c083a86 100644
> > --- a/libavcodec/avcodec.h
> > +++ b/libavcodec/avcodec.h
> > @@ -1593,6 +1593,14 @@ enum AVPacketSideDataType {
> > * AVContentLightMetadata struct.
> > */
> > AV_PKT_DATA_CONTENT_LIGHT_LEVEL,
> > +
> > + /**
> > + * The number of side data elements (in fact a bit more than it).
> > + * This is not part of the public API/ABI in the sense that it may
> > + * change when new side data types are added.
> > + * This must stay the last enum value.
> > + */
> > + AV_PKT_DATA_NB,
>
> if it's supposed to always be the last value, you can drop the trailing
> comma.
fixed
thx
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Everything should be made as simple as possible, but not simpler.
-- Albert Einstein
-------------- 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/20170512/4d44f7d8/attachment.sig>
More information about the ffmpeg-devel
mailing list