Skip to content
Permalink
Browse files

fixed issue #49, reported by Hanno Böck (@hannob)

  • Loading branch information...
Cyan4973 committed Oct 23, 2015
1 parent eeb8ba1 commit fc60883d42f7f860d4573e34b466eca632d57966
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/huff0.c
@@ -602,6 +602,7 @@ static size_t HUF_readStats(BYTE* huffWeight, size_t hwSize, U32* rankStats,

/* get last non-null symbol weight (implied, total must be 2^n) */
tableLog = BIT_highbit32(weightTotal) + 1;
if (tableLog > HUF_ABSOLUTEMAX_TABLELOG) return ERROR(corruption_detected);
{
U32 total = 1 << tableLog;
U32 rest = total - weightTotal;

0 comments on commit fc60883

Please sign in to comment.
You can’t perform that action at this time.