avcodec/pnm_parser: Use memmove() to handle "overread"
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 1 Aug 2019 20:20:48 +0000 (22:20 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 23 Aug 2019 20:26:50 +0000 (22:26 +0200)
commit34f6d1a7d7859310914d7f34e8cc3b68d6254003
tree33cf26053087f215e57a121f4ac9c4985ccddaa6
parent8a24d2cc304c7f0807bc472dfc39d247040d71c2
avcodec/pnm_parser: Use memmove() to handle "overread"

This is significantly faster

Fixes: Timeout (1sec after this and the previous commit)
Fixes: 15558/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_PPM_fuzzer-5705273643106304

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