Re: (subset) [PATCH v2] mfd: iqs62x: reject zero-length firmware records

From: Lee Jones

Date: Thu Aug 06 2026 - 09:16:22 EST


On Mon, 20 Jul 2026 19:54:23 +0800, Pengpeng Hou wrote:
> struct iqs62x_fw_rec includes the first data byte in its fixed-size header,
> so the parser advances by len - 1 bytes after that header. A zero len makes
> the size_t cursor update move back by one byte, so the next record overlaps
> the current record instead of following a valid declared extent.
>
> Reject zero-length records and express the remaining-size check without an
> offset addition.
>
> [...]

Applied, thanks!

[1/1] mfd: iqs62x: reject zero-length firmware records
commit: 08ea045e0b82cbcadb7a2efc43a23561489a00f2

--
Lee Jones [李琼斯]