Skip to content

Address range validation difference for line number command #234

@sylvestre

Description

@sylvestre

Gnu:

 $ echo -e "line1\nline2\nline3" | sed -e "47,60="
  line1
  line2
  line3

with Rust:

  $ echo -e "line1\nline2\nline3" | ./target/debug/sed -e "47,60="
  sed: <script argument 1>:1:6: error: command = expects up to 1 address(es), found 2

Found with a fuzzer

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions