geforkt von Mirrors/Velocity
Do a small sanity check, however
Dieser Commit ist enthalten in:
Ursprung
821a7a45bc
Commit
b881e9cf04
@ -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);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren