13
0
geforkt von Mirrors/Velocity

Do a small sanity check, however

Dieser Commit ist enthalten in:
Andrew Steinborn 2019-05-21 00:58:52 -04:00
Ursprung 821a7a45bc
Commit b881e9cf04

Datei anzeigen

@ -51,6 +51,7 @@ public class NativeVelocityCipher implements VelocityCipher {
@Override
public ByteBuf process(ChannelHandlerContext ctx, ByteBuf source) throws ShortBufferException {
ensureNotDisposed();
source.memoryAddress(); // sanity check
int len = source.readableBytes();
ByteBuf out = ctx.alloc().directBuffer(len);