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:24:51 +0000 (00:24 +0100)
commitdee25a5fa5da52acf720dc74a5534471b18eb13f
tree6073d30c9ea3ffb22aa56085dc710548e466e61a
parent0f956cde937b748268ad0ed9bd396864a1c209ec
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