Skip to content

8321053: Use ByteArrayInputStream.buf directly when parameter of transferTo() is trusted #3515

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cost0much
Copy link
Contributor

@cost0much cost0much commented Apr 18, 2025

Clean backport. Fixes bug with ByteArrayInputStream.transferTo(OutputStream) passing ByteArrayInputStream.buf to OutputStream parameters not in package java.io. Change passes added test/jdk/java/io/ByteArrayInputStream/TransferToTrusted.java on linux x64.


Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • JDK-8321053 needs maintainer approval

Issue

  • JDK-8321053: Use ByteArrayInputStream.buf directly when parameter of transferTo() is trusted (Bug - P4)

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk17u-dev.git pull/3515/head:pull/3515
$ git checkout pull/3515

Update a local copy of the PR:
$ git checkout pull/3515
$ git pull https://git.openjdk.org/jdk17u-dev.git pull/3515/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 3515

View PR using the GUI difftool:
$ git pr show -t 3515

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk17u-dev/pull/3515.diff

Sorry, something went wrong.

@bridgekeeper
Copy link

bridgekeeper bot commented Apr 18, 2025

👋 Welcome back cost0much! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Apr 18, 2025

❗ This change is not yet ready to be integrated.
See the Progress checklist in the description for automated requirements.

@openjdk openjdk bot changed the title Backport b0d145097cdc61e4bab19393a125e63aa3bc29b9 8321053: Use ByteArrayInputStream.buf directly when parameter of transferTo() is trusted Apr 18, 2025
@openjdk
Copy link

openjdk bot commented Apr 18, 2025

This backport pull request has now been updated with issue from the original commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

1 participant