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 index out of bounds: the len is 3 but the index is 3 in crates/biome_control_flow/src/builder.rs #4723

Open
1 task done
qarmin opened this issue Dec 12, 2024 · 0 comments
Labels
A-Linter Area: linter L-JavaScript Language: JavaScript and super languages S-Bug-confirmed Status: report has been confirmed as a valid bug

Comments

@qarmin
Copy link

qarmin commented Dec 12, 2024

Environment information

CLI:
  Version:                      0.0.0 (self compiled c3c405f2f69cf6da889947a46a2444bcf70e1a25)
  Color support:                true

Platform:
  CPU Architecture:             x86_64
  OS:                           linux

Environment:
  BIOME_LOG_PATH:               unset
  BIOME_LOG_PREFIX_NAME:        unset
  BIOME_CONFIG_PATH:            unset
  NO_COLOR:                     unset
  TERM:                         "xterm-256color"
  JS_RUNTIME_VERSION:           unset
  JS_RUNTIME_NAME:              unset
  NODE_PACKAGE_MANAGER:         unset

Biome Configuration:
  Status:                       unset

Workspace:
  Open Documents:               0

What happened?

File content(at the bottom should be attached raw, not formatted file - github removes some non-printable characters, so copying from here may not work):

   if ndpato{      (){   if asCmesnen{   }
  if     '&
  else

command

timeout -v 150 biome lint TEST___FILE.js

cause this

Biome encountered an unexpected error

This is a bug in Biome, not an error in your code, and we would appreciate it if you could report it to https://github.com/biomejs/biome/issues/ along with the following information to help us fixing the issue:

Source Location: /home/runner/work/Automated-Fuzzer/Automated-Fuzzer/biome-main/crates/biome_control_flow/src/builder.rs:114:44
Thread Name: biome::worker_2
Message: index out of bounds: the len is 3 but the index is 3


##### Automatic Fuzzer note, output status "None", output signal "Some(6)"

compressed.zip

Expected result

No crash

Code of Conduct

  • I agree to follow Biome's Code of Conduct
@qarmin qarmin added the S-Needs triage Status: this issue needs to be triaged label Dec 12, 2024
@Conaclos Conaclos added A-Linter Area: linter L-JavaScript Language: JavaScript and super languages S-Bug-confirmed Status: report has been confirmed as a valid bug and removed S-Needs triage Status: this issue needs to be triaged labels Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Linter Area: linter L-JavaScript Language: JavaScript and super languages S-Bug-confirmed Status: report has been confirmed as a valid bug
Projects
None yet
Development

No branches or pull requests

2 participants