[PATCH 3/4] bus/pci/bsd: Eliminate potential overflow
Burakov, Anatoly
anatoly.burakov at intel.com
Thu May 8 13:28:12 CEST 2025
On 5/6/2025 7:40 PM, Jake Freeland wrote:
> When calling rte_pci_write_config(), use memcpy(3) to copy @len bytes
> of @buf into local memory instead of casting it to a uint32_t pointer
> and dereferencing it. This prevents us from reading data outside of
> @buf in the case that @buf has a length less than 32 bits.
>
> Signed-off-by: Jake Freeland <jfree at FreeBSD.org>
> ---
Acked-by: Anatoly Burakov <anatoly.burakov at intel.com>
--
Thanks,
Anatoly
More information about the dev
mailing list