Skip to content

ihsinme: Add query for CWE-758 Reliance on Undefined, Unspecified, or Implementation-Defined Behavior #402

@ihsinme

Description

@ihsinme

Query

Relevant PR: github/codeql#6231

Report

in this query I am looking for possible undefined behavior errors in expressions.
I have identified 4 main areas:

dangerous use of several incremental (decremental) operations, between sequence points.
using the functions of freeing resources.
the use of a common argument that can change the value inside the function.
the presence of a common global variable that can change its value.

  • Are you planning to discuss this vulnerability submission publicly? (Blog Post, social networks, etc). We would love to have you spread the word about the good work you are doing

Result(s)

Metadata

Metadata

Assignees

No one assigned

    Labels

    All For OneSubmissions to the All for One, One for All bounty

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions