A pathological case of huffman coding that uses 8 bits to code each of 256
authorRob Landley <rob@landley.net>
Sat, 28 Jun 2008 06:07:34 +0000 (01:07 -0500)
committerRob Landley <rob@landley.net>
Sat, 28 Jun 2008 06:07:34 +0000 (01:07 -0500)
commit8cca60d64e4b0c4f45fdb0bf5517869867d51a6e
tree092c460bdebcc97704e95884eef21126dc3ed055
parentb1487dc9ed8c892afde94a8ac04350e3ca0e7074
A pathological case of huffman coding that uses 8 bits to code each of 256
symbols could cause an unsigned char limit[8] to wrap back to 0, setting
limit to -1 and making the decompressor exit with a data error.
lib/bunzip.c