Fix integer overflow in unpack_sha1_rest()
authorIlari Liusvaara <ilari.liusvaara@elisanet.fi>
Tue, 26 Jan 2010 18:24:14 +0000 (20:24 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 26 Jan 2010 21:00:10 +0000 (13:00 -0800)
commit3aee68aa68e80856de26340b707148d8f8d5b82e
tree34ccbcc121881c3846d35cf5fa5135243c87ae6e
parent222083a1585c058fd2bbcb76db1ea824ee3df17f
Fix integer overflow in unpack_sha1_rest()

[jc: later NUL termination by the caller becomes unnecessary]

Signed-off-by: Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sha1_file.c