From d426138d0bf626c17e81c4173ae3a44ddb5c79ab Mon Sep 17 00:00:00 2001 From: Joakim Erdfelt Date: Wed, 6 Nov 2013 17:29:17 -0700 Subject: [PATCH] Fixing logic error in max length for ByteAccumulator --- .../websocket/common/extensions/compress/ByteAccumulator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jetty-websocket/websocket-common/src/main/java/org/eclipse/jetty/websocket/common/extensions/compress/ByteAccumulator.java b/jetty-websocket/websocket-common/src/main/java/org/eclipse/jetty/websocket/common/extensions/compress/ByteAccumulator.java index d675466d1ff..bdc0e78ed05 100644 --- a/jetty-websocket/websocket-common/src/main/java/org/eclipse/jetty/websocket/common/extensions/compress/ByteAccumulator.java +++ b/jetty-websocket/websocket-common/src/main/java/org/eclipse/jetty/websocket/common/extensions/compress/ByteAccumulator.java @@ -54,7 +54,7 @@ public class ByteAccumulator public void addBuffer(byte buf[], int offset, int length) { - if (buf.length + length > maxSize) + if (this.length + length > maxSize) { throw new MessageTooLargeException("Frame is too large"); }