Thomas Rast
212eb96a96
apply: carefully strdup a possibly-NULL name
...
2901bbe (apply: free patch->{def,old,new}_name fields, 2012-03-21)
cleaned up the memory management of filenames in the patches, but
forgot that find_name_traditional() can return NULL as a way of saying
"I couldn't find a name".
That NULL unfortunately gets passed into xstrdup() next, resulting in
a segfault. Use null_strdup() so as to safely propagate the null,
which will let us emit the correct error message.
Reported-by: DevHC on #git
Signed-off-by: Thomas Rast <trast@inf.ethz.ch >
Signed-off-by: Junio C Hamano <gitster@pobox.com >
2013-06-21 08:36:07 -07:00
..
2012-02-13 11:42:18 -08:00
2013-06-21 08:36:07 -07:00
2011-11-15 15:39:33 -08:00
2012-05-14 10:19:42 -07:00
2012-05-04 09:12:24 -07:00
2012-03-07 09:07:38 -08:00
2011-10-17 21:37:14 -07:00
2012-05-25 12:06:34 -07:00
2012-05-07 12:35:36 -07:00
2012-04-27 09:26:37 -07:00
2012-01-06 12:44:07 -08:00
2012-05-24 17:16:41 -07:00
2012-03-28 15:19:17 -07:00
2012-03-23 13:52:05 -07:00
2012-06-12 07:27:50 -07:00
2012-05-29 13:09:08 -07:00
2012-05-03 15:29:25 -07:00
2012-06-12 08:33:30 -07:00
2011-12-13 09:26:52 -08:00
2012-03-07 09:07:39 -08:00
2012-04-18 16:17:42 -07:00
2012-05-25 12:04:19 -07:00
2012-05-03 15:13:31 -07:00
2012-05-14 11:50:40 -07:00
2011-12-20 16:02:08 -08:00
2012-05-24 20:50:19 -07:00
2012-01-16 16:06:57 -08:00
2012-04-30 15:45:51 -07:00
2012-05-24 17:16:41 -07:00
2011-11-10 09:10:51 -08:00
2011-12-28 11:32:36 -08:00
2011-12-13 21:12:34 -08:00
2011-12-22 11:27:26 -08:00
2012-05-18 14:22:15 -07:00
2012-03-07 10:24:33 -08:00
2012-03-07 10:24:33 -08:00
2012-05-11 11:18:43 -07:00
2012-02-21 15:14:41 -08:00
2011-11-07 22:12:19 -08:00
2012-05-20 18:48:10 -07:00
2011-11-13 12:21:06 -08:00
2011-12-06 15:13:39 -08:00
2012-05-14 11:46:16 -07:00
2012-04-10 09:25:35 -07:00
2012-05-10 10:32:43 -07:00
2012-05-01 09:40:30 -07:00
2011-12-13 09:39:46 -08:00
2011-11-13 12:21:06 -08:00
2011-12-12 16:48:54 -08:00
2012-02-27 15:58:36 -08:00
2012-05-24 17:16:41 -07:00
2012-04-30 15:45:51 -07:00
2012-04-04 09:57:50 -07:00
2012-03-07 09:07:39 -08:00
2011-11-21 14:32:40 -08:00
2012-05-24 17:16:41 -07:00
2012-03-08 14:03:07 -08:00