| author | |
| committer | |
| log | 31d1cae8c68fbc765fd4394863b071788dbc9746 |
| tree | d5e68f4e6d29f092207b4cf644ffe1594825c1bf |
| parent | 95953e1ee6a50229e21423aa2ac4e6929b37468a |
1 files changed, 1 insertions(+), 2 deletions(-)
lib/std/compress/zstandard/decompress.zig+1-2| ... | ... | @@ -1418,8 +1418,7 @@ fn decodeFseTable( |
| 1418 | 1418 | } |
| 1419 | 1419 | bit_reader.alignToByte(); |
| 1420 | 1420 | |
| 1421 | // TODO: check there are at least 2 non-zero probabilities | |
| 1422 | ||
| 1421 | if (value_count < 2) return error.MalformedFseTable; | |
| 1423 | 1422 | if (accumulated_probability != total_probability) return error.MalformedFseTable; |
| 1424 | 1423 | if (value_count > expected_symbol_count) return error.MalformedFseTable; |
| 1425 | 1424 |