[FFmpeg-devel] [PATCH 1/3] tools/target_dec_fuzzer: Init parsepkt

Michael Niedermayer michael at niedermayer.cc
Sat Aug 31 18:34:49 EEST 2019


On Fri, Aug 30, 2019 at 08:51:53PM -0300, James Almer wrote:
> On 8/30/2019 8:25 PM, Michael Niedermayer wrote:
> > Fixes: memory corruption
> > Fixes: 16702/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_PNG_fuzzer-5768418552184832
> > 
> > Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
> > Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> > ---
> >  tools/target_dec_fuzzer.c | 1 +
> >  1 file changed, 1 insertion(+)
> > 
> > diff --git a/tools/target_dec_fuzzer.c b/tools/target_dec_fuzzer.c
> > index e22a0c5c34..901dbca385 100644
> > --- a/tools/target_dec_fuzzer.c
> > +++ b/tools/target_dec_fuzzer.c
> > @@ -194,6 +194,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
> >      // Read very simple container
> >      AVPacket avpkt, parsepkt;
> >      av_init_packet(&avpkt);
> > +    av_init_packet(&parsepkt);
> >      while (data < end && it < maxiteration) {
> >          // Search for the TAG
> >          while (data + sizeof(fuzz_tag) < end) {
> > 
> 
> LGTM.

will apply

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I know you won't believe me, but the highest form of Human Excellence is
to question oneself and others. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20190831/916c41af/attachment.sig>


More information about the ffmpeg-devel mailing list