Skip to content

panic: index out of bounds: the len is 8 but the index is 16479 #1867

@correctmost

Description

@correctmost

Summary

ty crashes when checking this fuzzed code:

__next__ = next
@staticmethod
def __next__
error[panic]: Panicked at crates/ruff_db/src/parsed.rs:210:13 when checking `/home/user/a.py`: `index out of bounds: the len is 8 but the index is 16479`

Version

5e31bc9 w/ astral-sh/ruff@bc8efa2fd86

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingfatala fatal error (panic or crash)fuzzerIssues surfaced by fuzzing ty

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions