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>
Sat, 30 Jan 2016 23:25:20 +0000 (00:25 +0100)
commit7142ddcf92c695cce2530761331844adca1300a2
tree7968fe00f921f66828cdd9dad306dd493bedae95
parent5d40272ba8fcae15d39422c8ceeae6112735300f
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>
(cherry picked from commit 89f464e9c229006e16f6bb5403c5529fdd0a9edd)

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