-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Segfault when .env
is exactly 159 bytes
#3136
Labels
bug
Something isn't working
Comments
I can confirm this issue also exists on my machine (Arch Linux, 6.3.6-zen1-1-zen) |
alexlamsl
added a commit
to alexlamsl/bun
that referenced
this issue
Jun 18, 2023
fixes oven-sh#411 fixes oven-sh#2823 fixes oven-sh#3042 fixes oven-sh#3136
Merged
alexlamsl
added a commit
to alexlamsl/bun
that referenced
this issue
Jun 18, 2023
- fixes `strings.indexOfAny()` fixes oven-sh#411 fixes oven-sh#2823 fixes oven-sh#3042 fixes oven-sh#3136
alexlamsl
added a commit
to alexlamsl/bun
that referenced
this issue
Jun 18, 2023
- fixes `strings.indexOfAny()` - fixes OOB array access fixes oven-sh#411 fixes oven-sh#2823 fixes oven-sh#3042 fixes oven-sh#3136
alexlamsl
added a commit
to alexlamsl/bun
that referenced
this issue
Jun 18, 2023
- fixes `strings.indexOfAny()` - fixes OOB array access fixes oven-sh#411 fixes oven-sh#2823 fixes oven-sh#3042 fixes oven-sh#3136
alexlamsl
added a commit
to alexlamsl/bun
that referenced
this issue
Jun 18, 2023
- fixes `strings.indexOfAny()` - fixes OOB array access fixes oven-sh#411 fixes oven-sh#2823 fixes oven-sh#3042 fixes oven-sh#3136
alexlamsl
added a commit
to alexlamsl/bun
that referenced
this issue
Jun 19, 2023
- fixes `strings.indexOfAny()` - fixes OOB array access fixes oven-sh#411 fixes oven-sh#2823 fixes oven-sh#3042 fixes oven-sh#3136
alexlamsl
added a commit
to alexlamsl/bun
that referenced
this issue
Jun 19, 2023
- fixes `strings.indexOfAny()` - fixes OOB array access fixes oven-sh#411 fixes oven-sh#2823 fixes oven-sh#3042 fixes oven-sh#3136
alexlamsl
added a commit
to alexlamsl/bun
that referenced
this issue
Jun 19, 2023
- fixes `strings.indexOfAny()` - fixes OOB array access fixes oven-sh#411 fixes oven-sh#2823 fixes oven-sh#3042 fixes oven-sh#3136
alexlamsl
added a commit
to alexlamsl/bun
that referenced
this issue
Jun 20, 2023
- fixes `strings.indexOfAny()` - fixes OOB array access fixes oven-sh#411 fixes oven-sh#2823 fixes oven-sh#3042 fixes oven-sh#3136
alexlamsl
added a commit
to alexlamsl/bun
that referenced
this issue
Jun 20, 2023
- fixes `strings.indexOfAny()` - fixes OOB array access fixes oven-sh#411 fixes oven-sh#2823 fixes oven-sh#3042 fixes oven-sh#3136
This can be already be marked as closed @jakeboone02 seems like it was fixed in #3369 |
alexlamsl
added a commit
to alexlamsl/bun
that referenced
this issue
Jun 21, 2023
- fixes `strings.indexOfAny()` - fixes OOB array access fixes oven-sh#411 fixes oven-sh#2823 fixes oven-sh#3042 fixes oven-sh#3136
Indeed − thank you @Jarred-Sumner 😉 |
Wow I was hovering over the "Close issue" button about to click it when you closed it, @alexlamsl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What version of Bun is running?
0.6.5
What platform is your computer?
Linux 5.15.90.1-microsoft-standard-WSL2 x86_64 x86_64 (also same behavior on macOS)
What steps can reproduce the bug?
What is the expected behavior?
Bun should not segfault.
What do you see instead?
Additional information
I tried other lengths for
.env
like 318 (checking for multiples of 159), and adjacent lengths 158 and 160, etc. No matter what content was in the.env
file, a length of 159 caused a segfault and any other length did not.The text was updated successfully, but these errors were encountered: