Fix read off-by-one bug in compressed int function
authorJonathan Dieter <jdieter@gmail.com>
Tue, 4 Apr 2023 20:08:50 +0000 (21:08 +0100)
committerJonathan Dieter <jdieter@gmail.com>
Tue, 4 Apr 2023 20:08:50 +0000 (21:08 +0100)
commit1829fd18c9626254c266b87212715dae7cedc5fb
tree88b0076372ea930dce6194096a99fcd81b0a2d99
parent1d8f14484b4e0b507487abe6c294fb2059b7b72f
Fix read off-by-one bug in compressed int function

A malformed compressed integer would cause unzck to read one byte past the
end of the allocated memory.  This commit fixes this bug.  Thanks to
Agostino Sarubbo of Gentoo for providing a bug report with a reproducible
test case.

Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
src/lib/compint.c