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

8190753: (zipfs): Accessing a large entry (> 2^31 bytes) leads to a negative initial size for ByteArrayOutputStream #201

Closed
wants to merge 1 commit into from

Conversation

apavlyutkin
Copy link
Contributor

@apavlyutkin apavlyutkin commented Oct 18, 2021

I'd like to backport JDK-8190753
The original patch applied cleanly
Tested with accompanying

  • ./test/jdk/jdk/nio/zipfs/LargeCompressedEntrySizeTest.java
  • ./test/jdk/jdk/nio/zipfs/ZipFSOutputStreamTest.java

Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issue

  • JDK-8190753: (zipfs): Accessing a large entry (> 2^31 bytes) leads to a negative initial size for ByteArrayOutputStream

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk17u pull/201/head:pull/201
$ git checkout pull/201

Update a local copy of the PR:
$ git checkout pull/201
$ git pull https://git.openjdk.java.net/jdk17u pull/201/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 201

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.java.net/jdk17u/pull/201.diff

@bridgekeeper bridgekeeper bot added the oca label Oct 18, 2021
@bridgekeeper
Copy link

bridgekeeper bot commented Oct 18, 2021

Hi @apavlyutkin, welcome to this OpenJDK project and thanks for contributing!

We do not recognize you as Contributor and need to ensure you have signed the Oracle Contributor Agreement (OCA). If you have not signed the OCA, please follow the instructions. Please fill in your GitHub username in the "Username" field of the application. Once you have signed the OCA, please let us know by writing /signed in a comment in this pull request.

If you already are an OpenJDK Author, Committer or Reviewer, please click here to open a new issue so that we can record that fact. Please use "Add GitHub user apavlyutkin" as summary for the issue.

If you are contributing this work on behalf of your employer and your employer has signed the OCA, please let us know by writing /covered in a comment in this pull request.

@openjdk openjdk bot changed the title Backport c3d8e9228d0558a2ce3e093c105c61ea7af2e1d1 8190753: (zipfs): Accessing a large entry (> 2^31 bytes) leads to a negative initial size for ByteArrayOutputStream Oct 18, 2021
@openjdk
Copy link

openjdk bot commented Oct 18, 2021

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

@apavlyutkin
Copy link
Contributor Author

apavlyutkin commented Oct 20, 2021

/covered

@bridgekeeper bridgekeeper bot added the oca-verify label Oct 20, 2021
@bridgekeeper
Copy link

bridgekeeper bot commented Oct 20, 2021

Thank you! Please allow for a few business days to verify that your employer has signed the OCA. Also, please note that pull requests that are pending an OCA check will not usually be evaluated, so your patience is appreciated!

@bridgekeeper bridgekeeper bot removed oca oca-verify labels Oct 22, 2021
@openjdk
Copy link

openjdk bot commented Oct 22, 2021

@apavlyutkin This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

After integration, the commit message for the final commit will be:

8190753: (zipfs): Accessing a large entry (> 2^31 bytes) leads to a negative initial size for ByteArrayOutputStream

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 60 new commits pushed to the master branch:

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

As you do not have Committer status in this project an existing Committer must agree to sponsor your change.

➡️ To flag this PR as ready for integration with the above commit message, type /integrate in a new comment. (Afterwards, your sponsor types /sponsor in a new comment to perform the integration).

@openjdk openjdk bot added ready rfr labels Oct 22, 2021
@mlbridge
Copy link

mlbridge bot commented Oct 22, 2021

Webrevs

@apavlyutkin
Copy link
Contributor Author

apavlyutkin commented Oct 23, 2021

/integrate

@openjdk openjdk bot added the sponsor label Oct 23, 2021
@openjdk
Copy link

openjdk bot commented Oct 23, 2021

@apavlyutkin
Your change (at version f32a1c3) is now ready to be sponsored by a Committer.

@apavlyutkin
Copy link
Contributor Author

apavlyutkin commented Oct 26, 2021

/integrate

@openjdk
Copy link

openjdk bot commented Oct 26, 2021

@apavlyutkin
Your change (at version f32a1c3) is now ready to be sponsored by a Committer.

@yan-too
Copy link

yan-too commented Oct 26, 2021

/sponsor

@openjdk
Copy link

openjdk bot commented Oct 26, 2021

Going to push as commit ccfe697.
Since your change was applied there have been 65 commits pushed to the master branch:

  • a1dc595: 8274779: HttpURLConnection: HttpClient and HttpsClient incorrectly check request method when set to POST
  • 80077e5: 8272305: several hotspot runtime/modules don't check exit codes
  • c7b9f9e: 8272391: Undeleted debug information
  • 15964f0: 8272335: runtime/cds/appcds/MoveJDKTest.java doesn't check exit codes
  • e85351d: 8271215: Fix data races in G1PeriodicGCTask
  • 031c033: 8275145: file.encoding system property has an incorrect value on Windows
  • 90273f3: 8251329: (zipfs) Files.walkFileTree walks infinitely if zip has dir named "." inside
  • 844d8bf: 8274205: Handle KDC_ERR_SVC_UNAVAILABLE error code from KDC
  • facbabb: 8270946: X509CertImpl.getFingerprint should not return the empty String
  • c89e8ba: 8273808: Cleanup AddFontsToX11FontPath
  • ... and 55 more: https://git.openjdk.java.net/jdk17u/compare/47c129db49e0206e9b18ead6c5db066373581c1a...master

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot closed this Oct 26, 2021
@openjdk openjdk bot added integrated and removed ready rfr sponsor labels Oct 26, 2021
@openjdk
Copy link

openjdk bot commented Oct 26, 2021

@yan-too @apavlyutkin Pushed as commit ccfe697.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport clean integrated
2 participants