Skip to content

LGTM.com - false positive #7477

@MicK7

Description

@MicK7

Description of the false positive

LGTM detects an overflow of the static array but the tag is sized 5 (TAG_SIZE+1) with a MACRO definition of TAG_SIZE set at 4.
It should not detect an overflow. Maybe it can alert on a misleading code since " tag[TAG_SIZE] = '\0' " would have been semantically better.

URL to the alert on the project page on LGTM.com

https://lgtm.com/projects/g/CGNS/CGNS/snapshot/a8ce0c1b1b48ddeb108dbed26ea49bc3b19cb217/files/src/adf/ADF_internals.c?sort=name&dir=ASC&mode=heatmap#x2675ef43068d1816:1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions