Re: [PATCH] mkimage: fix option parsing segfault

2025-04-28 Thread Tom Rini
On Thu, 24 Apr 2025 17:08:19 +0200, Carlos López wrote: > 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,

[PATCH] mkimage: fix option parsing segfault

2025-04-24 Thread Carlos López
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 com