Re: [PATCH] nvmem: layouts: onie-tlv: check both field header and value bounds

From: Srinivas Kandagatla

Date: Tue Nov 24 2026 - 16:19:15 EST



On Tue, 17 Nov 2026 15:19:45 -0700, James Hilliard wrote:
> The table CRC does not validate individual field lengths. The field
> iterator can read a two-byte header when only one byte remains. Its
> value length check also counts the header as available space and can
> publish a cell extending beyond the table.
>
> Check the remaining space before reading the header and exclude the
> header from the space available for the value. Stop at the first
> truncated field, keeping any complete cells already registered.
>
> [...]

Applied, thanks!

[1/1] nvmem: layouts: onie-tlv: check both field header and value bounds
commit: 1f2bc0f3b7bd5e459f6f751d912ecc85009b170a

Best regards,
--
Srinivas Kandagatla <srini@xxxxxxxxxx>