From b881e9cf046849d8d5afbf8338f6f6e7b8fb5a29 Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Tue, 21 May 2019 00:58:52 -0400 Subject: [PATCH] Do a small sanity check, however --- .../velocitypowered/natives/encryption/NativeVelocityCipher.java | 1 + 1 file changed, 1 insertion(+) diff --git a/native/src/main/java/com/velocitypowered/natives/encryption/NativeVelocityCipher.java b/native/src/main/java/com/velocitypowered/natives/encryption/NativeVelocityCipher.java index a9a0267f3..b6a27a7c8 100644 --- a/native/src/main/java/com/velocitypowered/natives/encryption/NativeVelocityCipher.java +++ b/native/src/main/java/com/velocitypowered/natives/encryption/NativeVelocityCipher.java @@ -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);