Skip to content

Use of uninitialized value in TM4C NetworkInterface.c  #1026

@jonathangjertsen

Description

@jonathangjertsen

I got a warning when trying to port a project from TI CCS to the GNU ARM toolchain. Specifically on this line:

_rx_descriptors[ i ].ui32Count = DES1_RX_CTRL_CHAINED | ( ( buffer_size_requested << DES1_TX_CTRL_BUFF1_SIZE_S ) & DES1_TX_CTRL_BUFF1_SIZE_M );

GCC warns that 'buffer_size_requested' may be used uninitialized. Indeed, it is declared here and never initialized:

Note that the port works great despite this apparent bug. But it seems like this should cause issues with the DMA. Tagging @jscott-hotstart in case you remember what buffer_size_requested should be.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions