Files
git/builtin
Elijah Newren 0ed556d38f rev-parse: check lookup'ed commit references for NULL
Commits 2122f8b963 ("rev-parse: Add support for the ^! and ^@ syntax",
2008-07-26) and 3dd4e7320d ("Teach rev-parse the ... syntax.", 2006-07-04)
taught rev-parse new syntax, and used lookup_commit_reference() as part of
their logic.  Neither usage checked the returned commit to see if it was
non-NULL before using it.  Check for NULL and ensure an appropriate error
is reported to the user.

Reported by Florian Weimer and Todd Zullinger.

Helped-by: Jeff King <peff@peff.net>
Signed-off-by: Elijah Newren <newren@gmail.com>
Reviewed-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2018-05-25 10:46:42 +09:00
..
2017-11-27 11:06:37 +09:00
2017-10-06 10:07:18 +09:00
2017-12-27 11:16:25 -08:00
2017-06-24 14:28:41 -07:00
2017-11-18 12:31:29 +09:00
2017-10-07 16:27:55 +09:00
2017-03-31 08:33:56 -07:00
2017-09-25 15:24:07 +09:00
2017-11-21 14:07:50 +09:00
2017-06-24 14:28:41 -07:00
2017-12-27 11:16:29 -08:00
2017-08-26 22:55:09 -07:00
2017-12-06 09:23:39 -08:00
2017-12-13 13:28:54 -08:00
2017-12-06 09:23:44 -08:00
2017-11-18 12:31:29 +09:00
2017-06-24 14:28:41 -07:00
2017-12-27 11:16:29 -08:00
2017-08-22 10:29:03 -07:00
2017-12-27 11:16:29 -08:00
2017-11-06 14:24:27 +09:00
2017-11-21 14:07:50 +09:00
2017-06-24 14:28:41 -07:00