Skip to content

Program unexpected panic when multiply operation. #950

Closed
@bhao-Soo

Description

@bhao-Soo

What version of regex are you using?

1.7.1

Describe the bug at a high level.

Program attempt to multiply with overflow, which causing a panic.

What are the steps to reproduce the behavior?

Using auto-generated fuzz target can reproduce the behavior. it was uploaded to the issue platform.
multiply_overflow.zip

Similar problems were found in the fuzzy test:

  • regex/src/re_set.rs:419:1
  • regex/src/re_trait.rs:23:23

What is the actual behavior?

Panic happens, the program crashes.

What is the expected behavior?

Multiply operation without causing a panic

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions