[dpdk-dev] [PATCH v1 1/1] power: check freq count before filling the freqs array
Thomas Monjalon
thomas at monjalon.net
Thu Jul 22 21:43:17 CEST 2021
21/07/2021 11:27, Richael Zhuang:
> The freqs array size is RTE_MAX_LCORE_FREQS. Before filling the
> array with num_freqs elements, restrict the total num to
> RTE_MAX_LCORE_FREQS. This fix aims to fix the coverity scan issue
> like:
> Overrunning array "pi->freqs" of 256 bytes by passing it to a
> function which accesses it at byte offset 464.
>
> Coverity issue: 371913
>
> Signed-off-by: Richael Zhuang <richael.zhuang at arm.com>
Please provide "Fixes:" lines.
More information about the dev
mailing list