picotool icon indicating copy to clipboard operation
picotool copied to clipboard

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

Open tjko opened this issue 4 months ago • 0 comments

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

tjko avatar Aug 27 '25 04:08 tjko