tests/tiny_ssim: check dimensions

Fix integer overflow

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tools/ismindex: use av_mallocz_array()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>