]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
net: aquantia: fixed memcpy size
authorNikita Danilov <nikita.danilov@aquantia.com>
Wed, 27 Feb 2019 12:10:03 +0000 (12:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Mar 2019 00:45:15 +0000 (16:45 -0800)
commitff83dbf21e79d03f3788943a5bce12c39a06a3ab
treec1a149241e804d50d31d82adcb8f8f1c68468d6a
parent699be71534e8f03af12b01013d0a4b405f5ef148
net: aquantia: fixed memcpy size

Not careful array dereference caused analysis tools
to think there could be memory overflow.

There was actually no corruption because the array is
two dimensional.

drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c: 140
  aq_ethtool_get_strings() error:
    memcpy() '*aq_ethtool_stat_names' too small (32 vs 704)

Signed-off-by: Nikita Danilov <nikita.danilov@aquantia.com>
Signed-off-by: Igor Russkikh <igor.russkikh@aquantia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c