Carlos López
86d671a6af
mkimage: fix option parsing segfault
...
getopt_long() expects a NULL-terminated list of structures. The current
list in mkimage does not have a zero-filled structure at the end, which
can cause getopt_long() to walk past the end of the array when passing
an unknown option, causing a segmentation fault.
As a reproducer, the following command causes a segmentation fault
(tested in Debian 12):
mkimage --foobar
Signed-off-by: Carlos López <carlos.lopezr4096@gmail.com >
2025-05-01 05:56:48 -06:00
..
2025-05-01 05:56:48 -06:00
2025-05-01 05:56:48 -06:00
2025-05-01 05:56:48 -06:00
2025-02-25 14:21:52 -07:00
2024-10-21 20:51:23 -06:00
2024-07-15 12:12:18 -06:00
2025-04-29 12:43:50 -06:00
2025-05-01 05:56:48 -06:00
2025-04-29 12:44:57 -06:00
2024-09-12 17:35:37 +02:00
2024-07-15 12:12:18 -06:00
2024-10-18 14:10:22 -06:00
2024-07-15 12:12:18 -06:00
2025-05-01 05:56:48 -06:00
2025-02-15 19:07:09 -07:00
2025-04-29 12:44:57 -06:00
2024-10-21 17:52:52 -06:00
2024-07-15 12:12:18 -06:00
2024-07-15 12:12:18 -06:00
2025-04-29 12:44:57 -06:00
2025-04-29 12:44:58 -06:00
2024-11-25 23:07:37 -03:00
2025-04-29 12:44:57 -06:00
2025-04-29 12:44:57 -06:00
2025-04-29 12:43:50 -06:00
2025-04-29 12:43:50 -06:00
2025-05-01 05:56:48 -06:00
2025-02-25 06:33:57 -07:00
2024-11-09 09:56:45 +01:00
2025-04-29 12:43:50 -06:00
2024-05-24 13:40:04 -06:00
2025-05-01 05:56:48 -06:00
2025-04-29 12:44:57 -06:00
2024-07-15 12:12:18 -06:00
2009-04-28 01:16:46 +02:00
2025-04-29 12:43:50 -06:00
2025-04-29 12:43:50 -06:00
2025-05-01 05:56:48 -06:00
2025-04-29 12:43:50 -06:00
2025-05-01 05:56:48 -06:00
2025-02-09 12:10:30 -07:00
2025-04-29 12:44:58 -06:00
2024-08-06 00:19:57 +01:00
2022-09-13 06:38:08 +02:00
2025-04-29 12:43:50 -06:00
2024-07-31 11:20:36 -06:00
2023-04-13 11:34:47 +02:00