Do a small sanity check, however
This commit is contained in:
@@ -51,6 +51,7 @@ public class NativeVelocityCipher implements VelocityCipher {
|
|||||||
@Override
|
@Override
|
||||||
public ByteBuf process(ChannelHandlerContext ctx, ByteBuf source) throws ShortBufferException {
|
public ByteBuf process(ChannelHandlerContext ctx, ByteBuf source) throws ShortBufferException {
|
||||||
ensureNotDisposed();
|
ensureNotDisposed();
|
||||||
|
source.memoryAddress(); // sanity check
|
||||||
|
|
||||||
int len = source.readableBytes();
|
int len = source.readableBytes();
|
||||||
ByteBuf out = ctx.alloc().directBuffer(len);
|
ByteBuf out = ctx.alloc().directBuffer(len);
|
||||||
|
Reference in New Issue
Block a user