[dpdk-dev] [PATCH v2 04/10] net/atlantic: fix buffer overflow

Stephen Hemminger stephen at networkplumber.org
Sat Mar 9 16:24:40 CET 2019


On Sat, 9 Mar 2019 14:03:30 +0000
Igor Russkikh <Igor.Russkikh at aquantia.com> wrote:

> From: Pavel Belous <Pavel.Belous at aquantia.com>
> 
> Found by Coverity scan. This is a real memory corruption.
> There is no need in extra RTE_ALIGN macros since the
> request/result structures are 4-byte aligned by definition.

When fixing bugs found by Coverity it is best to mark these with
the Coverity number. The convention (in Linux kernel) is shown
by these examples:

    Addresses-Coverity-ID: 1476095 ("Bad bit shift operation")
    Detected by CoverityScan, CID#1476031 ("Dereference before null check")

Should this go in the style guide somewhere?


More information about the dev mailing list