netty5/buffer/src/test/java/io/netty/buffer
Norman Maurer 131be58f48
Correctly take length of ByteBufInputStream into account for readLine… (#9310)
* Correctly take length of ByteBufInputStream into account for readLine() / readByte()

Motivation:

ByteBufInputStream did not correctly take the length into account when validate bounds for readLine() / readByte() which could lead to read more then allowed.

Modifications:

- Correctly take length into account
- Add unit tests
- Fix existing unit test

Result:

Correctly take length of ByteBufInputStream into account.
Related to https://github.com/netty/netty/pull/9306.
2019-07-01 20:55:23 +02:00
..
AbstractByteBufAllocatorTest.java Expose ByteBufAllocator metric in a more general way 2017-03-08 20:07:58 +01:00
AbstractByteBufTest.java Introduce ByteBuf.maxFastWritableBytes() method (#9086) 2019-05-22 20:11:24 +02:00
AbstractCompositeByteBufTest.java Fix possible unsafe sharing of internal NIO buffer in CompositeByteBuf (#9169) 2019-05-22 11:07:06 +02:00
AbstractPooledByteBufTest.java Introduce ByteBuf.maxFastWritableBytes() method (#9086) 2019-05-22 20:11:24 +02:00
AbstractReferenceCountedByteBufTest.java Fix the error message in ReferenceCounted.release (#7921) 2018-05-08 20:09:16 +02:00
AdvancedLeakAwareByteBufTest.java Ensure leak aware buffers correctly close the ResourceLeakTracker 2016-12-08 19:33:20 +01:00
AdvancedLeakAwareCompositeByteBufTest.java Ensure leak aware buffers correctly close the ResourceLeakTracker 2016-12-08 19:33:20 +01:00
BigEndianCompositeByteBufTest.java [#2622] Correctly check reference count before try to work on the underlying memory 2014-06-30 07:14:25 +02:00
BigEndianDirectByteBufTest.java PooledByteBuf.capacity(...) not enforces maxCapacity() 2017-02-01 18:45:54 +01:00
BigEndianHeapByteBufTest.java PooledByteBuf.capacity(...) not enforces maxCapacity() 2017-02-01 18:45:54 +01:00
BigEndianUnsafeDirectByteBufTest.java PooledByteBuf.capacity(...) not enforces maxCapacity() 2017-02-01 18:45:54 +01:00
BigEndianUnsafeNoCleanerDirectByteBufTest.java PooledByteBuf.capacity(...) not enforces maxCapacity() 2017-02-01 18:45:54 +01:00
ByteBufAllocatorTest.java Ensure tests pass when sun.misc.Unsafe is not present 2017-02-14 07:52:07 +01:00
ByteBufDerivationTest.java remove unused imports (#9287) 2019-06-26 21:08:31 +02:00
ByteBufStreamTest.java Correctly take length of ByteBufInputStream into account for readLine… (#9310) 2019-07-01 20:55:23 +02:00
ByteBufUtilTest.java Subsequence versions of ByteBufUtil#writeUtf8(...) methods (#9224) 2019-06-21 14:05:35 +02:00
ByteProcessorTest.java HttpResponseStatus object allocation reduction 2018-01-24 22:01:52 -08:00
ConsolidationTest.java CompositeBytebuf.copy() and copy(...) should respect the allocator 2017-11-10 07:17:16 -08:00
DefaultByteBufHolderTest.java Correctly implement DefaultByteBufHolder.equals(...) and hashCode() 2016-05-20 21:43:40 +02:00
DuplicatedByteBufTest.java PooledByteBuf.capacity(...) not enforces maxCapacity() 2017-02-01 18:45:54 +01:00
EmptyByteBufTest.java EmptyByteBuf.getCharSequence(0,...) must return empty String (#9272) 2019-06-24 21:09:19 +02:00
FixedCompositeByteBufTest.java Allow to use native transports when sun.misc.Unsafe is not present on… (#8231) 2018-08-29 19:36:33 +02:00
LittleEndianCompositeByteBufTest.java *ChannelBuffer* -> *ByteBuf* and ChannelBuffersTest -> UnpooledTest 2013-01-21 21:02:25 +01:00
LittleEndianDirectByteBufTest.java PooledByteBuf.capacity(...) not enforces maxCapacity() 2017-02-01 18:45:54 +01:00
LittleEndianHeapByteBufTest.java PooledByteBuf.capacity(...) not enforces maxCapacity() 2017-02-01 18:45:54 +01:00
LittleEndianUnsafeDirectByteBufTest.java PooledByteBuf.capacity(...) not enforces maxCapacity() 2017-02-01 18:45:54 +01:00
LittleEndianUnsafeNoCleanerDirectByteBufTest.java PooledByteBuf.capacity(...) not enforces maxCapacity() 2017-02-01 18:45:54 +01:00
NoopResourceLeakTracker.java Fix false-positives when using ResourceLeakDetector. 2016-12-04 09:01:39 +01:00
PoolArenaTest.java Fix offset calculation in PooledByteBufAllocator when used 2018-11-27 11:47:34 +01:00
PooledBigEndianDirectByteBufTest.java PooledByteBuf.capacity(...) not enforces maxCapacity() 2017-02-01 18:45:54 +01:00
PooledBigEndianHeapByteBufTest.java PooledByteBuf.capacity(...) not enforces maxCapacity() 2017-02-01 18:45:54 +01:00
PooledByteBufAllocatorTest.java Prefer direct io buffers if direct buffers pooled (#9167) 2019-05-22 07:32:41 +02:00
PooledLittleEndianDirectByteBufTest.java PooledByteBuf.capacity(...) not enforces maxCapacity() 2017-02-01 18:45:54 +01:00
PooledLittleEndianHeapByteBufTest.java PooledByteBuf.capacity(...) not enforces maxCapacity() 2017-02-01 18:45:54 +01:00
ReadOnlyByteBufferBufTest.java Use the ByteBufAllocator when copy a ReadOnlyByteBufferBuf and so also be able to release it without the GC when the Cleaner is present. 2017-08-16 07:33:10 +02:00
ReadOnlyByteBufTest.java Make methods 'static' where it possible 2017-10-21 14:59:26 +02:00
ReadOnlyDirectByteBufferBufTest.java Fix incorrect behavior of ReadOnlyByteBufferBuf.getBytes(int,ByteBuffer) (#9125) 2019-05-13 07:00:06 +02:00
ReadOnlyUnsafeDirectByteBufferBufTest.java ReadOnlyUnsafeDirectByteBuf.memoryAddress() should not throw 2018-02-02 07:27:26 +01:00
RetainedDuplicatedByteBufTest.java PooledByteBuf.capacity(...) not enforces maxCapacity() 2017-02-01 18:45:54 +01:00
RetainedSlicedByteBufTest.java Add tests to ensure an IllegalReferenceCountException is thrown if set/writeCharSequence is called on a released buffer 2017-07-21 07:39:32 +02:00
SimpleLeakAwareByteBufTest.java Cleanup buffer tests. 2018-02-02 07:33:46 +01:00
SimpleLeakAwareCompositeByteBufTest.java AbstractByteBuf readSlice bound check bug 2017-11-18 09:03:42 +01:00
SlicedByteBufTest.java ByteBufs which are not resizable should not throw in ensureWritable(int,boolean) 2017-07-22 08:44:48 -07:00
UnpooledByteBufAllocatorTest.java Allow to obtain informations of used direct and heap memory for ByteBufAllocator implementations 2017-03-01 18:53:43 +01:00
UnpooledTest.java Correctly release all buffers in UnpooledTest 2017-04-27 19:29:45 +02:00
UnreleaseableByteBufTest.java Eliminate unnessary wrapping when call ByteBuf.asReadOnly() in some cases 2017-02-14 08:35:16 +01:00
UnsafeByteBufUtilTest.java Fix misordered 'assertEquals' arguments in tests 2017-03-08 22:48:37 -08:00
WrappedCompositeByteBufTest.java PooledByteBuf.capacity(...) not enforces maxCapacity() 2017-02-01 18:45:54 +01:00
WrappedUnpooledUnsafeByteBufTest.java Cleanup buffer tests. 2018-02-02 07:33:46 +01:00