mirror of
https://github.com/BinomialLLC/basis_universal.git
synced 2026-06-08 08:33:53 +00:00
Refining the last Huffman fix found through fuzz testing
This commit is contained in:
@@ -162,7 +162,14 @@ namespace basist
|
||||
tree_next -= 2;
|
||||
}
|
||||
else
|
||||
{
|
||||
tree_cur = m_tree[idx];
|
||||
if (tree_cur >= 0)
|
||||
{
|
||||
// Supplied codesizes can't create a valid prefix code.
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
tree_cur -= ((rev_code >>= 1) & 1);
|
||||
|
||||
Reference in New Issue
Block a user