gitlab.flawfinder.streadd-1.strecpy-1
137
Download Count*
License
Ensure the destination has 4 times the size of the source, to leave room for expansion.
Run Locally
Run in CI
Defintion
rules:
- id: flawfinder.streadd-1.strecpy-1
languages:
- c
message: >
Ensure the destination has 4 times the size of the source, to leave room
for expansion.
metadata:
cwe: "CWE-120: This function does not protect against buffer overflows
(CWE-120)"
primary_identifier: flawfinder.streadd-1.strecpy-1
secondary_identifiers:
- name: Flawfinder - streadd
type: flawfinder_func_name
value: streadd
- name: Flawfinder - strecpy
type: flawfinder_func_name
value: strecpy
license: MIT
pattern-either:
- pattern: streadd(...)
- pattern: strecpy(...)
severity: ERROR
Short Link: https://sg.run/DwW2