Mattias Hansson
eb1c716c6d
tools/mxsimage: Remove fclose on empty FILE pointer
...
If `sb_load_cmdfile()` fails to open the configuration file it will jump
to error handling where the code will try to `fclose()` the FILE pointer
which is NULL causing `mkimage` to segfault.
This patch removes the label for error handling and instead returns
immediately which skips the `fclose()` and prevents the segfault. The
errno is also described in the error message to guide users.
Signed-off-by: Mattias Hansson <hansson.mattias@gmail.com>
Reviewed-by: Wolfgang Denk <wd@denx.de>
2022-02-05 13:38:39 +01:00
..
2022-01-30 20:40:58 -07:00
2022-01-25 12:36:11 -07:00
2021-01-05 12:26:35 -07:00
2022-02-03 12:15:32 -05:00
2022-01-24 16:03:27 -05:00
2021-12-20 09:21:48 -05:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2020-04-26 14:23:39 -06:00
2021-12-26 23:23:52 +01:00
2018-05-07 09:34:12 -04:00
2022-01-25 12:36:11 -07:00
2016-06-13 07:46:29 +09:00
2021-01-29 20:22:40 +01:00
2020-04-24 10:10:00 -04:00
2018-05-07 09:34:12 -04:00
2021-09-30 08:08:56 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2019-07-29 00:20:31 +02:00
2019-12-02 18:23:08 -05:00
2020-01-07 11:12:47 -05:00
2018-05-07 09:34:12 -04:00
2021-01-13 02:38:00 +01:00
2020-06-29 22:36:35 +02:00
2019-12-02 18:23:08 -05:00
2022-01-26 08:50:43 -07:00
2021-12-17 09:44:59 -07:00
2018-11-26 22:52:12 -05:00
2022-01-26 08:50:42 -07:00
2022-01-26 08:50:44 -07:00
2022-01-26 08:50:44 -07:00
2022-01-26 08:50:44 -07:00
2019-05-18 12:32:02 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2022-01-13 09:13:41 -07:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2022-01-19 18:11:34 +01:00
2018-05-07 09:34:12 -04:00
2020-04-24 10:10:00 -04:00
2022-01-26 08:50:44 -07:00
2022-01-28 17:58:41 -05:00
2019-03-08 11:31:44 -05:00
2022-01-31 10:17:16 -05:00
2017-06-16 10:11:38 -04:00
2021-04-08 09:18:29 +02:00
2021-10-21 13:59:26 +02:00
2021-10-07 17:45:00 +02:00
2019-01-01 14:12:18 +01:00
2020-08-18 10:10:25 +02:00
2021-09-10 20:10:20 -04:00
2020-06-13 23:12:17 +05:30
2021-10-08 15:53:26 -04:00
2022-01-14 11:39:16 +01:00
2022-01-14 11:39:16 +01:00
2022-01-31 10:23:38 +01:00
2018-05-07 09:34:12 -04:00
2021-11-11 19:01:56 -05:00
2019-11-04 18:15:32 -07:00
2018-11-02 22:39:07 +01:00
2022-01-29 10:23:40 +01:00
2019-12-02 18:23:08 -05:00
2018-05-07 09:34:12 -04:00
2022-01-26 08:50:44 -07:00
2021-02-15 22:31:52 -05:00
2021-10-25 14:49:58 +01:00
2022-01-30 20:40:58 -07:00
2018-05-07 09:34:12 -04:00
2021-03-20 16:24:27 -04:00
2021-01-18 14:59:29 -05:00
2018-05-07 09:34:12 -04:00
2022-02-05 13:38:39 +01:00
2018-05-07 09:34:12 -04:00
2021-12-02 08:34:01 +02:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2020-04-24 10:51:56 -04:00
2020-04-24 10:51:56 -04:00
2019-12-02 18:23:08 -05:00
2018-05-07 09:34:12 -04:00
2019-12-02 18:23:08 -05:00
2018-05-07 09:34:12 -04:00
2019-08-15 13:42:28 +08:00
2019-09-03 09:30:32 +08:00
2020-05-18 18:36:55 -04:00
2021-11-15 14:33:32 -05:00
2021-12-24 18:30:08 +08:00
2022-01-19 18:11:34 +01:00
2019-12-27 15:17:07 +08:00
2019-11-04 18:15:32 -07:00
2019-12-27 15:17:07 +08:00
2019-12-27 15:17:07 +08:00
2020-09-22 12:50:43 -06:00
2021-01-15 17:48:39 +08:00
2019-10-08 16:36:37 +02:00
2020-02-13 17:32:09 +01:00
2022-01-30 01:25:00 +00:00
2017-05-05 16:45:57 -04:00
2021-10-21 07:39:05 +02:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2020-11-30 18:32:09 +01:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2021-01-04 10:51:26 +01:00
2019-10-24 13:37:02 +02:00
2019-10-28 13:32:51 -04:00
2018-05-11 09:23:44 +02:00
2018-05-11 14:54:57 -04:00