Format Fprintf Vfprintf

Format string vulnerabilities allow an attacker to read or in some cases, potentially write data to and from locations in the processes' memory. To prevent against format string attacks, do not allow users or un-validated input to provide the format specification. Consider using a constant for the format specification, or only allow specific characters to be

IndexedPublic repositoryHighMedium confidenceVerifiedGPL-2.0-onlyC
greprules fetch gitlab-sast-c-format-rule-fprintf-vfprintf --engine opengrep

Description

Format string vulnerabilities allow an attacker to read or in some cases, potentially write data to and from locations in the processes' memory. To prevent against format string attacks, do not allow users or un-validated input to provide the format specification. Consider using a constant for the format specification, or only allow specific characters to be