Skip to content
This repository was archived by the owner on Sep 11, 2019. It is now read-only.
This repository was archived by the owner on Sep 11, 2019. It is now read-only.

False positive Potential SQL injection with MsSQL Data Provider #87

@sady4850

Description

@sady4850
    class MyFoo {
        const string stringConst = "";
        void Do() {
            var s = "select * from Products";
            var sqlCommand = new SqlCommand(s + stringConst);
        }
    }

This reports potential sql injection that is not. Note, that there is no warning in case local const.

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