aboutsummaryrefslogtreecommitdiff
path: root/src/huffman/huff.h
diff options
context:
space:
mode:
authorLadislav Zezula <zezula@volny.cz>2024-04-21 20:21:38 +0200
committerLadislav Zezula <zezula@volny.cz>2024-04-21 20:21:38 +0200
commitc4e3490d729ba42e92803b7f2ef90ed86b0b0eca (patch)
tree4bdb5d39a85932c9be7ddb74306814d7682089f5 /src/huffman/huff.h
parenta26f04c11dd86e949e649a8c0a01eeaeae268c26 (diff)
Added buffer overflow checks to the Sparse decompression (https://github.com/ladislav-zezula/StormLib/issues/337)
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 e6f9e42..b2c6370 100644
--- a/src/huffman/huff.h
+++ b/src/huffman/huff.h
@@ -29,7 +29,7 @@ class TInputStream
TInputStream(void * pvInBuffer, size_t cbInBuffer);
bool Get1Bit(unsigned int & BitValue);
- unsigned int Get8Bits();
+ bool Get8Bits(unsigned int & ByteValue);
bool Peek7Bits(unsigned int & Value);
void SkipBits(unsigned int BitCount);