miurahr / pyppmd

pyppmd provides classes and functions for compressing and decompressing text data, using PPM (Prediction by partial matching) compression algorithm variation H and I.2. It provide an API similar to Python's zlib/bz2/lzma modules.
https://pyppmd.readthedocs.io/en/latest/
GNU Lesser General Public License v2.1
8 stars 3 forks source link

ppmd8: Add test case: fix it with a silent null #89

Closed miurahr closed 2 years ago

miurahr commented 2 years ago

PPMd algorithm expect extra b"\0" byte when it requires input byte but all data is exhausted. It can be observed as inBuf.Extra in p7zip project, both variation H and I.

Signed-off-by: Hiroshi Miura miurahr@linux.com