[PATCH] usb: gadget: fastboot: correctly cap rx_bytes_expected() result
Sascha Hauer
s.hauer at pengutronix.de
Mon Oct 26 05:57:06 PDT 2026
On Sun, 25 Oct 2026 17:01:37 +0100, Ahmad Fatoum wrote:
> The function only ever returns an unsigned value and
> fastboot.download_{size,bytes} are both unsigned values too.
>
> Storing their difference into an int may possibly lead to misbehavior,
> so fix the types to ensure no overflow can happen.
>
>
> [...]
Applied, thanks!
[1/1] usb: gadget: fastboot: correctly cap rx_bytes_expected() result
https://git.pengutronix.de/cgit/barebox/commit/?id=0d9d229fd497 (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer at pengutronix.de>
More information about the barebox
mailing list