Skip to content
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

[Panic] 'range end index 18446744073709551615 out of range for slice of length 0 #3524

Closed
qarmin opened this issue Mar 14, 2023 · 2 comments · Fixed by #3526
Closed

[Panic] 'range end index 18446744073709551615 out of range for slice of length 0 #3524

qarmin opened this issue Mar 14, 2023 · 2 comments · Fixed by #3526
Assignees
Labels
bug Something isn't working

Comments

@qarmin
Copy link

qarmin commented Mar 14, 2023

Ruff 0.0.255
Command

ruff ~/Desktop/Ruff/Broken/AcquireFile6.py --config /home/rafal/Desktop/ruff.toml --fix --no-cache

Settings

select = ["ALL"]

test_isinstance1.py.zip

produce error

error: `ruff` crashed. This indicates a bug in `ruff`. If you could open an issue at:

https://github.com/charliermarsh/ruff/issues/new?title=%5BPanic%5D

quoting the executed command, along with the relevant file contents and `pyproject.toml` settings, we'd be very appreciative!

thread 'main' panicked at 'range end index 18446744073709551615 out of range for slice of length 0', crates/ruff/src/rules/pyupgrade/rules/use_pep604_isinstance.rs:63:39

@qarmin qarmin changed the title [Infinite Loop] 'range end index 18446744073709551615 out of range for slice of length 0 [Panic] 'range end index 18446744073709551615 out of range for slice of length 0 Mar 14, 2023
@charliermarsh
Copy link
Member

Thanks! Are these all from the fuzzer?

@charliermarsh charliermarsh added the bug Something isn't working label Mar 14, 2023
@qarmin
Copy link
Author

qarmin commented Mar 14, 2023

From fuzzer, but not cargo-fuzz(#3507), only https://github.com/qarmin/create_broken_files - which takes valid files and broke them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants