[FFmpeg-devel] [PATCH 2/2] avcodec/hcadec: Check or bound indexes

Michael Niedermayer michael at niedermayer.cc
Mon Jun 8 21:44:06 EEST 2020


On Thu, May 14, 2020 at 09:05:23PM +0200, Michael Niedermayer wrote:
> On Wed, May 13, 2020 at 10:42:15PM +0200, Michael Niedermayer wrote:
> > This causes indexes into scale_conversion_table to wrap around, alternatively they
> > could be clipped, the table be enlarged or we can error out. I have not found a document that specifies
> > what is the correct way to handle this
> > 
> > Fixes: out of array access
> > Fixes: 21727/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HCA_fuzzer-5752477891952640.fuzz
> > 
> > Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
> > Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> > ---
> >  libavcodec/hcadec.c | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> If someone has hca files which do not originate from a fuzzer, these would be
> helpfull to test this

no reply, so 
will apply

thx

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The bravest are surely those who have the clearest vision
of what is before them, glory and danger alike, and yet
notwithstanding go out to meet it. -- Thucydides
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200608/e2673459/attachment.sig>


More information about the ffmpeg-devel mailing list