gitlab.flawfinder.memcpy-1.CopyMemory-1.bcopy-1
137
Download Count*
License
Make sure destination can always hold the source data.
Run Locally
Run in CI
Defintion
rules:
- id: flawfinder.memcpy-1.CopyMemory-1.bcopy-1
languages:
- c
message: |
Make sure destination can always hold the source data.
metadata:
cwe: "CWE-120: Does not check for buffer overflows when copying to destination
(CWE-120)"
primary_identifier: flawfinder.memcpy-1.CopyMemory-1.bcopy-1
secondary_identifiers:
- name: Flawfinder - memcpy
type: flawfinder_func_name
value: memcpy
- name: Flawfinder - CopyMemory
type: flawfinder_func_name
value: CopyMemory
- name: Flawfinder - bcopy
type: flawfinder_func_name
value: bcopy
license: MIT
pattern-either:
- pattern: memcpy(...)
- pattern: CopyMemory(...)
- pattern: bcopy(...)
severity: INFO
Short Link: https://sg.run/4P7g