Skip to content

Program unexpected panic when vec is called #949

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bhao-Soo opened this issue Jan 28, 2023 · 1 comment
Closed

Program unexpected panic when vec is called #949

bhao-Soo opened this issue Jan 28, 2023 · 1 comment
Labels

Comments

@bhao-Soo
Copy link

What version of regex are you using?

1.7.1

Describe the bug at a high level.

Program index out of boud for vector, 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.
index_out_of_bound.zip

Similar problems were found in the fuzzy test:

  • regex/src/re_unicode.rs:58:10
  • regex/src/exec.rs:461:22
  • regex/src/exec.rs:784:14
  • regex/src/re_unicode.rs:58:10

What is the actual behavior?

Panic happens, the program crashes.

What is the expected behavior?

Handle index out of bound without causing a panic

@BurntSushi
Copy link
Member

This issue is invalid in the same way that #948 is invalid. The offset provided is itself incorrect.

@BurntSushi BurntSushi closed this as not planned Won't fix, can't repro, duplicate, stale Jan 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants