From: Jiang Xin Date: Thu, 25 Apr 2013 10:52:13 GMT Subject: Re: [PATCH] Fix segfault for insane ident line Message-ID: In-Reply-To: Oops, Ignore this patch please, I found they were already fixed by the following commits of next branch. Maybe next time I should patch something in next branch. commit 9dbe7c3d7f4424cf0c27c2d4efabf72e58fa76b9 Author: René Scharfe Date: Wed Apr 17 20:33:35 2013 +0200 pretty: handle broken commit headers gracefully Centralize the parsing of the date and time zone strings in the new helper function show_ident_date() and make sure it checks the pointers provided by split_ident_line() for NULL before use. Reported-by: Ivan Lyapunov Signed-off-by: Rene Scharfe Signed-off-by: Junio C Hamano commit de5abe9fe91a496d019d62abefe23df9d72fad30 Author: René Scharfe Date: Wed Apr 17 20:33:54 2013 +0200 blame: handle broken commit headers gracefully split_ident_line() can leave us with the pointers date_begin, date_end, tz_begin and tz_end all set to NULL. Check them before use and supply the same fallback values as in the case of a negative return code from split_ident_line(). The "(unknown)" is not actually shown in the output, though, because it will be converted to a number (zero) eventually. Signed-off-by: Rene Scharfe -- 蒋鑫 北京群英汇信息技术有限公司 邮件: worldhello.net@gmail.com 网址: http://www.ossxp.com/ 博客: http://www.worldhello.net/ 微博: http://weibo.com/gotgit/ 电话: 18601196889