A static analyzer identified as a potential bug the copy of
12 bytes from a 6 bytes array to a 6 bytes array. Both
arrays are 6 bytes addresses.
Although not being a real bug, it is not immediately clear
why is done this way: next 6 bytes address, contiguous to
the first one, must also be copied to next contiguous 6 bytes
address of the destination.
Copying each one separately will make both static analyzers
and reviewers happier.
Signed-off-by: Íñigo Huguet <redacted>
---
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
On Tue, May 11, 2021 at 9:04 AM Íñigo Huguet [off-list ref] wrote:
quoted hunk
A static analyzer identified as a potential bug the copy of
12 bytes from a 6 bytes array to a 6 bytes array. Both
arrays are 6 bytes addresses.
Although not being a real bug, it is not immediately clear
why is done this way: next 6 bytes address, contiguous to
the first one, must also be copied to next contiguous 6 bytes
address of the destination.
Copying each one separately will make both static analyzers
and reviewers happier.
Signed-off-by: Íñigo Huguet <redacted>
---
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
From: Kalle Valo <hidden> Date: 2021-06-15 10:41:12
Íñigo Huguet [off-list ref] wrote:
A static analyzer identified as a potential bug the copy of
12 bytes from a 6 bytes array to a 6 bytes array. Both
arrays are 6 bytes addresses.
Although not being a real bug, it is not immediately clear
why is done this way: next 6 bytes address, contiguous to
the first one, must also be copied to next contiguous 6 bytes
address of the destination.
Copying each one separately will make both static analyzers
and reviewers happier.
Signed-off-by: Íñigo Huguet <redacted>