avcodec/xan: Improve overlapping check
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 30 Oct 2017 22:21:40 +0000 (23:21 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 1 Dec 2017 23:28:59 +0000 (00:28 +0100)
commita3bb922c4da1745fb6a12adc1b4e15e97794aaa6
tree5c252d0374122bf1cfc6875802a88f69f352b148
parent52ebd1a0dc2f0eb29eb6cf39c5b0cd9b35b3a0b5
avcodec/xan: Improve overlapping check

Fixes: memcpy-param-overlap
Fixes: 3612/clusterfuzz-testcase-minimized-6393461273001984

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit e8fafef1db43ead4eae5a6301ccc300e73aa47da)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/xan.c