Safeguard against broken code table in OASIS CBLOCKs

This commit is contained in:
Matthias Koefferlein 2025-07-13 19:31:47 +02:00
parent 5c7ac018a8
commit cc796317a0
1 changed files with 1 additions and 0 deletions

View File

@ -166,6 +166,7 @@ public:
if (*l > 0) {
unsigned int code = next_code [*l]++;
code <<= (max_bits - *l);
tl_assert (code < (unsigned int) (1 << max_bits));
mp_codes [code] = symbol;
mp_bitmasks [code] = bitmasks [*l];
}