GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||
GeezerVison is showing github.com — Auto-port 5.0: Handle non-positive skip lengths in ByteBufInputStream by netty-project-bot · Pull Request #17409 · netty/netty Conversation
Contributor
Auto-port of #17388 to 5.0 Motivation: ByteBufInputStream currently delegates non-positive skip values to ByteBuf.skipBytes(). This means negative values result in an IllegalArgumentException. While subclasses of InputStream may handle negative values differently, InputStream's default implementation returns 0 without skipping any bytes. Making ByteBufInputStream behave the same way provides more consistent Modification: Return 0 immediately from ByteBufInputStream.skip(long) and skipBytes(int) when the requested length is non-positive. Result: ByteBufInputStream now handles non-positive skip lengths consistently with InputStream's default behavior.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsMotivation: ByteBufInputStream currently delegates non-positive skip values to ByteBuf.skipBytes(). This means negative values result in an IllegalArgumentException. While subclasses of InputStream may handle negative values differently, InputStream's default implementation returns 0 without skipping any bytes. Making ByteBufInputStream behave the same way provides more consistent stream behavior. Modification: Return 0 immediately from ByteBufInputStream.skip(long) and skipBytes(int) when the requested length is non-positive. Result: ByteBufInputStream now handles non-positive skip lengths consistently with InputStream's default behavior. (cherry picked from commit 87eb426)
|
There was an error while loading. Please reload this page.
✅ All tests passed ✅Test SummaryBuild PR / windows-x86_64-java25-boringssl > Netty/Buffer
🏷️ Commit: edafd72 Test FailuresAlignedPooledByteBufAllocatorTest > testThreadCacheDestroyedByThreadCleaner() (Netty/Buffer in Build PR / windows-x86_64-java25-boringssl)Learn more about TestLens at testlens.app/docs. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.