Kir Kolyshkin
71498a13be
c.RWLayer: check for nil before use
...
Since commit e9b9e4ace294230c6b8eb has landed, there is a chance that
container.RWLayer is nil (due to some half-removed container). Let's
check the pointer before use to avoid any potential nil pointer
dereferences, resulting in a daemon crash.
Note that even without the abovementioned commit, it's better to perform
an extra check (even it's totally redundant) rather than to have a
possibility of a daemon crash. In other words, better be safe than
sorry.
[v2: add a test case for daemon.getInspectData]
[v3: add a check for container.Dead and a special error for the case]
Fixes: e9b9e4ace294230c6b8eb
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com >
(cherry picked from commit 195893d38160c0893e326b8674e05ef6714aeaa4)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com >
2018-02-20 15:43:30 -08:00
..
2017-11-10 13:42:38 +08:00
2018-02-13 16:05:03 +01:00
2017-12-06 13:19:47 -08:00
2017-09-08 18:23:21 -04:00
2017-09-27 17:34:07 +02:00
2017-12-01 09:06:07 +01:00
2018-02-20 07:52:23 -08:00
2017-10-24 15:39:34 -04:00
2017-02-23 10:16:22 +08:00
2017-11-02 00:01:46 +00:00
2018-02-19 13:27:49 -08:00
2017-09-06 12:05:16 -04:00
2017-10-18 10:26:58 +08:00
2017-11-02 00:01:46 +00:00
2017-09-06 12:05:19 -04:00
2016-12-07 08:47:28 +11:00
2017-05-18 00:05:13 +10:00
2017-06-07 11:44:34 -04:00
2017-04-12 10:33:19 +00:00
2017-06-07 11:44:33 -04:00
2017-10-06 15:26:48 -07:00
2017-06-08 15:06:54 -04:00
2017-09-14 12:07:52 -07:00
2017-09-07 09:44:08 +08:00
2016-11-07 09:06:34 -08:00
2017-11-23 15:41:59 -05:00
2017-07-31 13:16:46 -07:00
2018-02-20 15:43:30 -08:00
2017-11-27 17:32:12 -08:00
2017-05-10 21:16:52 -07:00
2017-10-24 15:39:34 -04:00
2017-05-11 10:08:21 -07:00
2017-05-16 14:25:32 -07:00
2017-05-16 14:25:32 -07:00
2017-07-31 13:16:46 -07:00
2017-08-15 16:01:11 -04:00
2017-10-10 22:45:34 +08:00
2017-07-31 13:16:46 -07:00
2017-08-15 16:01:11 -04:00
2017-01-30 16:23:23 +01:00
2018-01-20 01:52:05 +01:00
2017-10-06 11:44:18 -07:00
2017-10-06 11:44:18 -07:00
2017-11-06 18:22:15 -08:00
2016-11-10 15:51:32 -08:00
2018-02-20 13:11:57 +01:00
2018-02-20 13:11:57 +01:00
2017-11-29 11:22:57 -08:00
2017-11-02 00:01:46 +00:00
2018-02-07 15:23:33 -05:00
2017-11-02 00:01:46 +00:00
2017-09-25 11:07:44 -07:00
2017-11-27 17:32:12 -08:00
2018-02-20 15:43:30 -08:00
2017-07-31 13:16:46 -07:00
2017-11-02 00:01:46 +00:00
2017-10-19 11:09:29 -07:00
2017-08-25 12:04:58 -04:00
2018-02-20 15:41:42 -08:00
2017-05-11 10:08:21 -07:00
2017-09-12 14:11:11 -03:00
2017-11-29 11:22:57 -08:00
2017-06-20 08:55:46 -07:00
2017-07-31 13:16:46 -07:00
2017-10-20 07:11:37 -07:00
2017-10-20 07:11:37 -07:00
2017-10-20 07:11:37 -07:00
2017-12-01 09:06:07 +01:00
2017-10-06 11:44:18 -07:00
2017-11-02 00:01:46 +00:00
2017-11-16 15:04:01 -08:00
2017-12-29 16:02:15 +01:00
2017-10-06 11:44:18 -07:00
2017-08-18 17:09:27 -07:00
2017-08-18 17:09:27 -07:00
2017-08-18 17:09:27 -07:00
2017-08-18 17:09:27 -07:00
2017-08-18 17:09:27 -07:00
2017-10-06 11:44:18 -07:00
2017-12-15 01:40:50 -08:00
2017-10-06 11:44:18 -07:00
2017-10-06 11:44:18 -07:00
2017-04-08 11:28:37 +02:00
2017-11-03 01:46:58 +01:00
2016-11-19 13:21:16 +01:00
2017-12-06 23:23:55 +01:00
2017-06-23 07:22:47 -07:00
2018-02-20 15:43:30 -08:00
2017-11-02 00:01:46 +00:00
2017-06-23 07:22:47 -07:00
2018-02-20 15:43:30 -08:00
2016-12-20 21:05:19 +08:00
2017-12-16 01:22:06 -08:00
2017-07-18 12:09:26 +08:00
2017-11-02 00:01:46 +00:00
2017-06-23 07:52:31 -07:00
2017-10-06 11:44:18 -07:00
2017-10-03 12:42:54 -07:00
2017-11-04 08:31:58 -04:00
2017-07-31 13:16:46 -07:00
2017-05-12 00:30:09 -04:00
2017-09-12 12:09:59 -04:00
2017-10-20 07:11:37 -07:00
2017-10-20 07:11:37 -07:00
2017-10-20 07:11:37 -07:00
2017-11-30 11:30:51 -08:00
2017-05-11 12:31:53 -04:00
2017-10-04 20:39:45 +02:00
2017-11-30 13:03:30 -08:00
2017-11-20 18:48:27 -08:00
2018-02-20 07:53:20 -08:00
2018-02-20 15:43:30 -08:00
2017-10-20 07:11:37 -07:00
2017-10-12 09:24:26 -07:00
2017-12-06 13:19:47 -08:00
2017-12-06 13:19:47 -08:00
2017-08-15 16:01:11 -04:00
2017-10-20 07:11:37 -07:00
2017-07-31 13:16:46 -07:00
2016-12-27 21:46:52 +08:00
2017-09-26 13:59:45 +02:00
2017-07-31 13:16:46 -07:00
2016-11-09 14:27:43 -05:00
2017-05-16 11:30:06 -07:00
2017-05-16 11:30:06 -07:00
2017-07-31 13:16:46 -07:00
2017-04-24 21:29:47 +02:00
2017-11-30 09:55:03 -05:00
2017-10-20 07:11:37 -07:00
2017-10-20 07:11:37 -07:00
2017-01-04 18:18:30 +01:00
2017-08-15 16:01:11 -04:00
2017-10-24 15:39:34 -04:00
2017-11-21 12:41:43 -05:00
2017-10-20 07:11:37 -07:00
2017-10-20 07:11:37 -07:00
2017-10-20 07:11:37 -07:00
2017-09-06 12:05:19 -04:00
2017-09-06 12:05:19 -04:00
2017-10-20 07:11:37 -07:00
2017-10-20 07:11:37 -07:00
2017-10-20 07:11:37 -07:00
2017-10-20 07:11:37 -07:00
2018-02-15 10:20:07 -05:00
2018-02-15 10:20:07 -05:00
2017-09-14 12:33:31 -07:00
2017-07-03 13:13:09 -07:00
2017-11-02 15:00:42 -07:00
2018-02-15 10:20:07 -05:00
2018-02-15 10:20:07 -05:00
2017-05-16 15:11:39 -07:00
2017-06-07 11:45:33 -04:00