[Scummvm-git-logs] scummvm master -> d210871860dfe365aca0e2660614d8e383202bf4
whoozle
noreply at scummvm.org
Sun Feb 8 14:18:03 UTC 2026
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
d210871860 COMMON: HUFFMAN: assert that huffman symbol length is not 0
Commit: d210871860dfe365aca0e2660614d8e383202bf4
https://github.com/scummvm/scummvm/commit/d210871860dfe365aca0e2660614d8e383202bf4
Author: Vladimir Menshakov (vladimir.menshakov at gmail.com)
Date: 2026-02-08T14:17:42Z
Commit Message:
COMMON: HUFFMAN: assert that huffman symbol length is not 0
Changed paths:
common/compression/huffman.h
diff --git a/common/compression/huffman.h b/common/compression/huffman.h
index 37ab49e4ee3..da38d0b49bf 100644
--- a/common/compression/huffman.h
+++ b/common/compression/huffman.h
@@ -115,6 +115,7 @@ Huffman<BITSTREAM>::Huffman(uint8 maxLength, uint32 codeCount, const uint32 *cod
for (uint i = 0; i < codeCount; i++) {
uint8 length = lengths[i];
+ assert(length != 0);
// The symbol. If none was specified, assume it is identical to the code index.
uint32 symbol = symbols ? symbols[i] : i;
More information about the Scummvm-git-logs
mailing list