verify that palette color indices are always less than the number of color components (fixes 451.pdf.SIGSEGV.5b5.3723)
add some asserts to easier find further potential issues encountered along the way
Merge branch 'fixes' into sumatrapdf
add further asserts for patches ported over from SumatraPDF's openjpeg.patch