added checks to detect when chromsize len is less than a read pos (caused crash)