Heinrich Schuchardt
183780491f
fit: check return value of fit_image_get_data_size()
...
GCC-10 reports:
In file included from tools/common/image-fit.c:1:
include/image.h: In function ‘fit_image_get_data_and_size’:
./tools/../common/image-fit.c:1015:9: warning: ‘len’ may be used
uninitialized in this function [-Wmaybe-uninitialized]
1015 | *size = len;
| ~~~~~~^~~~~
./tools/../common/image-fit.c:996:6: note: ‘len’ was declared here
996 | int len;
| ^~~
Add the missing check of the return value of fit_image_get_data_size().
Fixes: c3c863880479 ("add FIT data-position & data-offset property support")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
2020-03-13 09:30:30 -04:00
..
2018-05-07 09:34:12 -04:00
2020-01-23 07:29:58 -05:00
2020-03-09 08:33:16 +08:00
2020-02-05 19:33:46 -07:00
2020-02-05 19:33:46 -07:00
2019-12-02 18:24:58 -05:00
2020-02-05 19:33:46 -07:00
2020-02-13 10:10:50 -05:00
2018-05-07 09:34:12 -04:00
2020-01-26 13:36:14 -05:00
2018-05-07 09:34:12 -04:00
2020-01-07 18:08:21 +01:00
2019-12-02 18:25:01 -05:00
2019-12-02 18:23:13 -05:00
2020-01-24 23:06:49 +05:30
2019-12-02 18:24:58 -05:00
2019-11-07 18:01:13 -05:00
2019-12-02 18:23:13 -05:00
2019-12-02 18:25:02 -05:00
2020-02-05 19:33:46 -07:00
2020-01-24 23:06:49 +05:30
2018-11-09 10:44:50 -05:00
2020-02-13 10:10:50 -05:00
2018-11-20 19:14:22 -07:00
2018-05-07 09:34:12 -04:00
2020-01-07 14:37:50 +01:00
2019-11-07 18:01:13 -05:00
2019-07-29 19:14:58 +02:00
2020-02-05 19:33:46 -07:00
2019-12-06 12:09:25 +01:00
2020-01-24 23:06:47 +05:30
2019-12-02 18:23:08 -05:00
2019-08-11 16:43:41 -04:00
2019-08-07 15:31:05 -04:00
2020-02-04 09:07:24 +05:30
2020-01-17 10:16:29 -05:00
2020-02-05 19:33:46 -07:00
2020-03-13 09:30:30 -04:00
2019-10-24 13:37:02 +02:00
2020-02-05 19:33:46 -07:00
2018-05-07 09:34:12 -04:00
2019-12-02 18:23:13 -05:00
2020-02-19 16:45:38 +08:00
2019-12-02 18:23:55 -05:00
2016-05-02 18:37:09 -04:00
2018-05-07 09:34:12 -04:00
2019-12-02 18:23:11 -05:00
2018-05-07 09:34:12 -04:00
2019-12-02 18:24:58 -05:00
2018-05-07 09:34:12 -04:00
2019-02-20 15:21:44 +08:00
2018-04-27 14:54:48 -04:00
2020-01-24 23:06:47 +05:30
2020-02-04 09:07:24 +05:30
2018-11-29 09:30:05 -07:00
2020-01-24 23:06:49 +05:30
2019-07-24 13:16:29 -04:00
2018-10-24 14:45:36 -05:00
2018-05-07 09:34:12 -04:00
2019-12-02 18:25:02 -05:00
2019-10-31 09:10:34 +01:00
2019-06-04 23:20:43 +02:00
2020-01-24 23:06:49 +05:30
2020-02-05 19:33:46 -07:00
2019-11-25 13:28:53 +01:00
2019-10-31 12:13:40 +01:00
2020-02-05 19:33:46 -07:00
2019-10-08 13:57:45 +08:00