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

Buffer.copy should ignore out-of-range sourceEnd #3971

Merged
merged 1 commit into from
Aug 4, 2023

Conversation

buffaybu
Copy link
Contributor

@buffaybu buffaybu commented Aug 4, 2023

What does this PR do?

fixes #3947

  • Documentation or TypeScript types (it's okay to leave the rest blank in this case)
  • Code changes

How did you verify your code works?

I wrote automated tests

@Jarred-Sumner Jarred-Sumner merged commit bdbc21f into oven-sh:main Aug 4, 2023
@Jarred-Sumner
Copy link
Collaborator

Thank you!

trnxdev pushed a commit to trnxdev/bun that referenced this pull request Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Buffer.copy return value is wrong when sourceEnd is greater than actual length.
2 participants