NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

port-arm/51013: src/sys/arch/arm/rockchip/rockchip_emac.c:524]: (error) Uninitialized variable: control



>Number:         51013
>Category:       port-arm
>Synopsis:       src/sys/arch/arm/rockchip/rockchip_emac.c:524]: (error) Uninitialized variable: control
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-arm-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 26 12:25:00 +0000 2016
>Originator:     David Binderman
>Release:        cvs dated 20160326
>Organization:
>Environment:
>Description:
Source code is

   control &= ~EMAC_CONTROL_RXBDTLEN;

but

   uint32_t control;

So some bit operations on random stack contents is occurring.

Suggest initialise local variable control at declaration.

>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index