Nguyễn Thái Ngọc Duy <pclouds@xxxxxxxxx> writes: > + Maximum value is 4095. > ... > + if (depth > (1 << OE_DEPTH_BITS)) > + die(_("delta chain depth %d is greater than maximum limit %d"), > + depth, (1 << OE_DEPTH_BITS)); > + Do I see an off-by-one here? Ie. if ((1 << OE_DEPATH_BITS) <= depth) die("depth that is 4096 or deeper is too much");