[PATCH] mkimage: fix option parsing segfault
    Tom Rini 
    trini at konsulko.com
       
    Mon Apr 28 23:34:02 CEST 2025
    
    
  
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, causing a segmentation fault.
> 
> As a reproducer, the following command causes a segmentation fault
> (tested in Debian 12):
> 
> [...]
Applied to u-boot/master, thanks!
[1/1] mkimage: fix option parsing segfault
      commit: 2c529839a93d886253c596449545f62bec21a4ac
-- 
Tom
    
    
More information about the U-Boot
mailing list