d3a41b8b9a
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) |
||
---|---|---|
.. | ||
src | ||
pom.xml |