You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Ranges: a numeric first address that has already been passed never latches #541
Found by the differential fuzzer (fuzz/fuzz_targets/fuzz_sed.rs).
GNU sed activates a range whose numeric first address lies before the current
line, as soon as the command is first evaluated. We only ever latch the range on
an exact match of the first address, so the range never becomes active.
Any command that can skip a cycle puts us in that situation: a block, but also n, N, d, D or a branch.
Activity
sylvestre commentedon Aug 29, 2026
Also reachable through
c, which ends the cycle before the following commands are evaluated:$ printf 'a\nb\nc\nd\ne\n' | sed -e '1,3c\txt' -e '4,5r /dev/null'sed: start a range whose numeric first address was already passed