avcodec/h264_refs: Check that long references match before use
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 29 Nov 2015 02:25:41 +0000 (03:25 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 14 Dec 2015 15:51:00 +0000 (16:51 +0100)
commit900039e7dc321ca33db696f7ae11b4058d6494ba
tree065515f8cdc55c5a30d243e1fc87b972b2aedac3
parentfad0748b9221fbc7ca806e2ca9aac84927cd7234
avcodec/h264_refs: Check that long references match before use

Fixes out of array read
Fixes: 59bb925e90201fa0f87f0a31945d43b5/asan_heap-oob_4a52e5_3388_66027f11e3d072f1e02401ecc6193361.jvt

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit aa427537b529cd584cd73222980286d36a00fe28)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/h264_refs.c