Add a few size checks when decoding rtjpeg blocks.