netty5/buffer
Matthew Kavanagh 9707ce183a Avoid integer overflow in ByteBuf.ensureWritable (#10648)
Motivation:

- To make ensureWritable throw IOOBE when maxCapacity is exceeded, even if
the requested new capacity would overflow Integer.MAX_VALUE

Modification:

- AbstractByteBuf.ensureWritable0 is modified to detect when
targetCapacity has wrapped around
- Test added for correct behaviour in AbstractByteBufTest

Result:

- Calls to ensureWritable will always throw IOOBE when maxCapacity is
exceeded (and bounds checking is enabled)
2020-10-12 09:23:43 +02:00
..
src Avoid integer overflow in ByteBuf.ensureWritable (#10648) 2020-10-12 09:23:43 +02:00
pom.xml Update version number to start working on Netty 5 2018-11-20 15:49:57 +01:00