Skip to content

DCL30-C: Replace implementation with cpp/return-stack-allocated-memory #495

Open

Description

@lcartey

Affected rules

  • DCL30-C

Description

There have recently been improvements to the C++ standard query for returning stack allocated memory:
https://github.com/github/codeql/blob/4de19b3ec97d4379ef5988bda591d749e1cd0f99/cpp/ql/src/Likely%20Bugs/Memory%20Management/ReturnStackAllocatedMemory.ql#L7

We should adopt this new and improved query which improves both false positive and false negative rates.

Activity

  1. added
    false positive/false negative
    Difficulty-Medium
    on Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Difficulty-MediumImpact-MediumStandard-CERT-Cfalse positive/false negative

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions