Darren Kenny
bc9c468a2c
kern/partition: Check for NULL before dereferencing input string
...
There is the possibility that the value of str comes from an external
source and continuing to use it before ever checking its validity is
wrong. So, needs fixing.
Additionally, drop unneeded part initialization.
Fixes: CID 292444
Signed-off-by: Darren Kenny <darren.kenny@oracle.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
2021-03-02 15:54:16 +01:00
..
2020-07-29 16:55:48 +02:00
2020-07-29 16:55:48 +02:00
2017-05-08 20:53:28 +02:00
2021-03-02 15:54:16 +01:00
2020-07-29 16:55:48 +02:00
2015-01-21 17:42:14 +01:00
2020-12-11 13:52:18 +01:00
2020-07-29 16:55:48 +02:00
2019-04-04 18:34:05 +02:00
2020-12-12 01:19:03 +01:00
2019-03-25 15:08:49 +01:00
2020-07-29 16:55:48 +02:00
2018-03-05 15:26:36 +01:00
2020-07-29 16:55:47 +02:00
2018-02-23 22:25:30 +01:00
2018-12-12 12:03:27 +01:00
2016-02-12 11:35:48 +01:00
2021-03-02 15:54:15 +01:00
2020-12-18 23:04:36 +01:00
2019-04-09 10:03:29 +10:00
2013-01-20 15:52:15 +00:00
2020-12-12 01:19:03 +01:00
2020-12-12 01:19:03 +01:00
2021-03-02 15:54:15 +01:00
2018-11-09 13:25:31 +01:00
2016-01-09 19:41:26 +03:00
2013-03-03 01:34:27 +01:00
2013-10-27 14:13:39 +01:00
2019-04-09 10:03:29 +10:00
2020-12-12 01:19:03 +01:00
2012-02-26 22:49:24 +01:00
2021-03-02 15:54:15 +01:00
2021-03-02 15:54:15 +01:00
2020-07-29 16:55:47 +02:00
2020-07-29 16:55:47 +02:00
2021-03-02 15:54:16 +01:00
2021-03-02 15:54:16 +01:00
2016-01-09 18:15:27 +03:00
2013-01-15 12:03:25 +00:00
2020-04-21 22:13:44 +02:00
2010-05-06 11:34:04 +05:30
2021-03-02 15:54:15 +01:00
2013-08-14 09:50:57 +02:00