Cyan4973 / FiniteStateEntropy

New generation entropy codecs : Finite State Entropy and Huff0
BSD 2-Clause "Simplified" License
1.33k stars 143 forks source link

Fix divide by 0 in FSE_normalizeM2 #79

Closed sean-purcell closed 7 years ago

sean-purcell commented 7 years ago

FSE_normalizeM2 had a corner case that could cause a divide by 0 to occur, crashing the program. Test added that fails against old version.