1
0
mirror of https://github.com/facebook/zstd.git synced 2025-12-01 23:57:51 +03:00
Files
zstd/lib/legacy/zstd_v06.c
Nick Terrell d760529a05 Fix stack buffer overrun when weightTotal == 0
If `weightTotal == 0`, then `BIT_highbit32(weightTotal)` is
undefined behavior in the case that it calls `__builtin_clz()`.
If `tableLog == HUF_TABLELOG_ABSOLUTEMAX` then we will access one
byte beyond the end of the buffer.
2016-10-19 11:39:11 -07:00

164 KiB