Fix integer overflows in patch_delta(), unpack_sha1_rest() and
unpack_compressed_entry().
These at least can cause git to segfault, possibly worse. Operations
that cause integer overflow are not possible to do (even whole virtual
memory space would not be sufficient), so die() instead.
Ilari Liusvaara (4):
Add xmallocz()
Fix integer overflow in patch_delta()
Fix integer overflow in unpack_sha1_rest()
Fix integer overflow in unpack_compressed_entry()
git-compat-util.h | 1 +
patch-delta.c | 3 +--
sha1_file.c | 5 ++---
wrapper.c | 12 +++++++++++-
4 files changed, 15 insertions(+), 6 deletions(-)