Skip to content

CodeQL warning: Wrong type of arguments to formatting function (CWE-686) #275

Description

@tjko

I noticed that CodeQL is flagging following:

main/build/_deps/picotool-src/main.cpp:2876
This format specifier for type 'int' does not match the argument type 'unsigned long'.
This format specifier for type 'int' does not match the argument type 'unsigned long'.

main/build/_deps/picotool-src/main.cpp:5267
This format specifier for type 'int' does not match the argument type 'fpos<__mbstate_t>'.

main/build/_deps/picotool-src/main.cpp:5365
This format specifier for type 'int' does not match the argument type 'fpos<__mbstate_t>'.

main/build/_deps/picotool-src/main.cpp:6565
This format specifier for type 'int' does not match the argument type 'unsigned long'.

Proposed fix: #274

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions