Fix compression of large repetitions

* src/misc/intvcomp.cc (stream_compression_base::run): Limit
repeatitions to 40, not 42.
(stream_decompression_base::refill): Refill the end of the stream
with 0.
(stream_decompression_base::look_n_bits): Add assertion.
* src/tgbatest/intvcomp.cc: Add a new test case.
This commit is contained in:
Alexandre Duret-Lutz 2011-04-13 11:31:36 +02:00
parent 1b447c3676
commit 445a785e10
3 changed files with 29 additions and 5 deletions

View file

@ -1,3 +1,14 @@
2011-04-13 Alexandre Duret-Lutz <adl@lrde.epita.fr>
Fix compression of large repetitions
* src/misc/intvcomp.cc (stream_compression_base::run): Limit
repeatitions to 40, not 42.
(stream_decompression_base::refill): Refill the end of the stream
with 0.
(stream_decompression_base::look_n_bits): Add assertion.
* src/tgbatest/intvcomp.cc: Add a new test case.
2011-04-12 Alexandre Duret-Lutz <adl@lrde.epita.fr>
More interfaces to the int array compression routines.