The C format-string rule fires on sprintf(buf, GET_REQUEST) when GET_REQUEST is a macro that expands to a string literal (seen in anon767/STM32F7HTTPS). That is a false positive: the format string is a constant.
Done when
Upper-case macro identifiers are treated as constant format strings (semgrep metavariable-regex), with a test for both the literal and the macro case.
## Problem
The C format-string rule fires on `sprintf(buf, GET_REQUEST)` when `GET_REQUEST` is a macro that expands to a string literal (seen in `anon767/STM32F7HTTPS`). That is a false positive: the format string is a constant.
## Done when
Upper-case macro identifiers are treated as constant format strings (semgrep `metavariable-regex`), with a test for both the literal and the macro case.
sharang
added this to the Production MVP milestone 2026-09-25 07:59:09 +00:00
sharang
added the bug label 2026-09-25 07:59:09 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Problem
The C format-string rule fires on
sprintf(buf, GET_REQUEST)whenGET_REQUESTis a macro that expands to a string literal (seen inanon767/STM32F7HTTPS). That is a false positive: the format string is a constant.Done when
Upper-case macro identifiers are treated as constant format strings (semgrep
metavariable-regex), with a test for both the literal and the macro case.