aboutsummaryrefslogtreecommitdiff
path: root/src/huffman/huff.h
diff options
context:
space:
mode:
authorLadislav Zezula <zezula@volny.cz>2024-04-21 20:15:04 +0200
committerLadislav Zezula <zezula@volny.cz>2024-04-21 20:15:04 +0200
commita26f04c11dd86e949e649a8c0a01eeaeae268c26 (patch)
treed551a53ab761fb58d436bd696673d350a64044e5 /src/huffman/huff.h
parentb35dc1e4d9d1a70c77a7554df87900486388fe0b (diff)
Added buffer overflow checks to the Huffmann decompression (https://github.com/ladislav-zezula/StormLib/issues/336)
Diffstat (limited to 'src/huffman/huff.h')
-rw-r--r--src/huffman/huff.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/huffman/huff.h b/src/huffman/huff.h
index cf1ca4c..e6f9e42 100644
--- a/src/huffman/huff.h
+++ b/src/huffman/huff.h
@@ -28,7 +28,7 @@ class TInputStream
public:
TInputStream(void * pvInBuffer, size_t cbInBuffer);
- unsigned int Get1Bit();
+ bool Get1Bit(unsigned int & BitValue);
unsigned int Get8Bits();
bool Peek7Bits(unsigned int & Value);
void SkipBits(unsigned int BitCount);