Files
u-boot/tools
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
..
2024-10-21 20:51:23 -06:00
2024-09-12 17:35:37 +02: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