3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-11-16 21:10:30 +01:00

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 @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);