Skip to content

'access' false positive #68

Closed
Closed
@marzojr

Description

@marzojr

CodeFactor is incorrectly diagnosing code as using access POSIX function when it is actually not:

Use of access() (CWE-362, CWE-367)             lines of code = 1
			if (flag.access() == FlagData::GETFLAG)

source

In this line of code, member function access of the class is being used, but CodeFactor is incorrectly misidentifying this as being POSIX syscall access.

The expectation would be to not get a warning in this case, as this is a clear false-positive and a waste of triage time.

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