avcodec/utils: Use av_memcpy_backptr() in ff_color_frame()
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 8 Sep 2019 15:25:07 +0000 (17:25 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 24 Sep 2019 15:53:39 +0000 (17:53 +0200)
commit340ab13504dddb71889f518983174d7bac7cfe96
treef1b8c394be50da46cab2439423b432d123802f5e
parent033d2c4884eca3f4f80047bff93255b0cc4fa7a3
avcodec/utils: Use av_memcpy_backptr() in ff_color_frame()

Fixes: Timeout (191sec -> 53sec)
Fixes: 16908/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_H264_fuzzer-5711207859748864
Fixes: 10709/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_H264_fuzzer-5630617975259136

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/utils.c