Visitar URL original
cpp/non-constant-format bug · Issue #27 · microsoft/codeql · GitHub
Skip to content

cpp/non-constant-format bug #27

Description

@bdrodes

strings of the form L"..." are being marked as non-constant in cpp/non-constant-format-bug

In discussions with GitHub on a permanent fix they suggested an incremental fix approach:

Activity

  1. bdrodes commented on Nov 3, 2023

    @bdrodes
    Author

    A deeper dive indicates the reported false positive for this is calling a macro that likely has string copy semantics into a arg of wprtinf, and that copy is not defined.

  2. bdrodes commented on Nov 3, 2023

    @bdrodes
    Author

    The library in question are all strsafe operations from win32's api: https://learn.microsoft.com/en-us/windows/win32/api/strsafe/

    These need to be modeled to fix the bug.

  3. bdrodes commented on Nov 8, 2023

    @bdrodes
    Author
  4. added a commit that references this issue on Jan 9, 2025
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

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions