codec: add more robust protections againt range errors when splicing
codec: add more robust protections againt range errors when splicing

jibsen/squash,quixdb/squash,Cloudef/squash,quixdb/squash,jibsen/squash,Cloudef/squash,quixdb/squash,jibsen/squash,Cloudef/squash