avcodec/tiff: Check subsample & rps values more completely
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 18 Jan 2016 02:31:25 +0000 (03:31 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 18 Jan 2016 02:51:00 +0000 (03:51 +0100)
commit89f464e9c229006e16f6bb5403c5529fdd0a9edd
tree1a9e6ecfdc4ee656ce7e5619bdc908eef02663a3
parent9bc281beae6dbf5d5f03cae8865b377f3a61f4ff
avcodec/tiff: Check subsample & rps values more completely

Fixes out of array access
Fixes: 83aedfb29af669c4d6e10f1bfad974d2/asan_heap-oob_1ab42fe_4984_9f6ec14462f8d8a00ea24b320572a963.tif

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/tiff.c