From: Nguyễn Thái Ngọc Duy Date: Sat, 16 Aug 2014 03:08:03 +0000 (+0700) Subject: sha1_file.c: do not die failing to malloc in unpack_compressed_entry X-Git-Tag: v2.2.0-rc0~136^2~3 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/735efde838b68747e737e863427a4843a8efaddb?ds=inline;hp=735efde838b68747e737e863427a4843a8efaddb sha1_file.c: do not die failing to malloc in unpack_compressed_entry Fewer die() gives better control to the caller, provided that the caller _can_ handle it. And in unpack_compressed_entry() case, it can, because unpack_compressed_entry() already returns NULL if it fails to inflate data. A side effect from this is fsck continues to run when very large blobs are present (and do not fit in memory). Noticed-by: Dale R. Worley Signed-off-by: Nguyễn Thái Ngọc Duy Signed-off-by: Junio C Hamano ---