vetkit.c.memory.unbounded-string-copy
strcpy / strcat / sprintf("%s") copies a non-constant string without a destination size, a common source of buffer overflows.
Last updated:
Suite: Security
c, cpp
strcpy / strcat / sprintf("%s") copies a non-constant string without a destination size, a common source of buffer overflows.
Category: SECURITY · Engine rule severity: INFO
How to fix it
Prefer snprintf / strlcpy / strlcat with the destination size (or std::string in C++), and check for truncation.
References
Source: packages/engine/rules/sast/c.yml.
Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.