[PATCH master 1/2] FIT: fix double free issue with >1 reference count

Sascha Hauer s.hauer at pengutronix.de
Mon Jan 26 23:56:29 PST 2026


On Mon, 26 Jan 2026 11:44:29 +0100, Ahmad Fatoum wrote:
> fit_open() was recently changed to be reference counted. When the FIT is
> already open, a handle will be returned with the canonical filename
> being the only allocation incurred.
> 
> fit_close() however unconditionally frees the handle without regards to
> the reference count.
> 
> [...]

Applied, thanks!

[1/2] FIT: fix double free issue with >1 reference count
      https://git.pengutronix.de/cgit/barebox/commit/?id=ba345a71e85e (link may not be stable)
[2/2] FIT: fuzz: fix reference count underflow
      https://git.pengutronix.de/cgit/barebox/commit/?id=e400bf88dea6 (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer at pengutronix.de>




More information about the barebox mailing list