aboutsummaryrefslogtreecommitdiffstats
path: root/lib/plum/hpack
diff options
context:
space:
mode:
Diffstat (limited to 'lib/plum/hpack')
-rw-r--r--lib/plum/hpack/huffman.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/plum/hpack/huffman.rb b/lib/plum/hpack/huffman.rb
index 2e44eba..2de8504 100644
--- a/lib/plum/hpack/huffman.rb
+++ b/lib/plum/hpack/huffman.rb
@@ -23,6 +23,7 @@ module Plum
bits.each_char do |cb|
buf << cb
if c = HUFFMAN_TABLE_INVERSED[buf]
+ raise HPACKError.new("huffman: EOS detected") if c == 256
out << c
buf = ""
end