型キャストちゃんと書く
malloc失敗時のエラー処理をちゃんと書く
verify hash-object -w by cat-file -p
unlink tmpfile
use Z_BEST_SPEED , the same as in git