avcodec/exr: More strictly check dc_count
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 25 May 2021 17:29:18 +0000 (19:29 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 18 Jun 2021 18:53:56 +0000 (20:53 +0200)
commit43bdf562c3f69261d742dd35dfe5147fb3c007d0
tree883244b392c5dfdf81cf627da6c0e269459513c3
parentfa38dfc0efaea2fde7002216f62441769bc85ce3
avcodec/exr: More strictly check dc_count

Fixes: out of array access
Fixes: exr/deneme

Found-by: Burak Çarıkçı <burakcarikci@crypttech.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 26d3c81bc5ef2f8c3f09d45eaeacfb4b1139a777)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/exr.c