]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Issue 719: Refuse to allocate a too-small PPMD7 context
authorTim Kientzle <kientzle@acm.org>
Sun, 19 Jun 2016 22:58:33 +0000 (15:58 -0700)
committerTim Kientzle <kientzle@acm.org>
Sun, 19 Jun 2016 22:58:33 +0000 (15:58 -0700)
commit5e29e82390bccfff514e710c90de8089ab5ef269
treecfe569fbc3e95425edf39abdd0cd671094f2bcb8
parent603454ec03040c29bd051fcc749e3c1433c11a8e
Issue 719:  Refuse to allocate a too-small PPMD7 context

Other parts of the PPMD7 code assume that the dictionary is
at least UNIT_SIZE (12 bytes).  Enforce that assumption here
to avoid potential buffer under- and over-runs.

This was pointed out in a review of the original fix for Issue 719.
libarchive/archive_ppmd7.c