diff --git a/v2/transform/ZRLT.go b/v2/transform/ZRLT.go index eb3f4e72..0e6600cf 100644 --- a/v2/transform/ZRLT.go +++ b/v2/transform/ZRLT.go @@ -162,7 +162,7 @@ func (this *ZRLT) Inverse(src, dst []byte) (uint, uint, error) { runLength-- if runLength > 0 { - if runLength > dstEnd-dstIdx { + if runLength >= dstEnd-dstIdx { break }