A buffer overflow condition exists when a program attempts to put more data in a buffer than it can hold, or when a program attempts to put data in a memory area outside of the boundaries of a buffer.
## high Finding
**Scanner:** semgrep
**Severity:** high
**Rule:** 0xdea-raptor-insecure-api-strcpy-strcat
**CWE:** CWE-676
**CRA:** cra-ai-20 — Automatisierte Sicherheitstests (Annex I)
### Description
A buffer overflow condition exists when a program attempts to put more data in a buffer than it can hold, or when a program attempts to put data in a memory area outside of the boundaries of a buffer.
### Location
**File:** `fixtures/nightly/firmware/c-sensor-node/Core/Src/comms.c` (line 20)
### Code
```
strcpy(command, rx_buffer);
```
### Remediation
Exclude fixtures/nightly from security scanning or mark it as test code.
---
*Fingerprint:* `2550252bcaa6a55b86802e3ec71c53aa760a0316f387f7d28eb8344a82262a92`
*Generated by compliance-scanner*
[Open in Prüfwerk / In Prüfwerk öffnen](https://pruefwerk.breakpilot.com/findings?target=6ae9aa2160f5d8045fc570a7)
Prüfwerk: Die Datei liegt in Testdaten (z. B. fixtures/ oder testdata/), die von der Prüfung ausgenommen sind.
The file lies in test data (such as fixtures/ or testdata/), which is left out of the scan.
**Prüfwerk:** Die Datei liegt in Testdaten (z. B. fixtures/ oder testdata/), die von der Prüfung ausgenommen sind.
The file lies in test data (such as fixtures/ or testdata/), which is left out of the scan.
Prüfwerk: Die Datei liegt in Testdaten (z. B. fixtures/ oder testdata/), die von der Prüfung ausgenommen sind.
The file lies in test data (such as fixtures/ or testdata/), which is left out of the scan.
**Prüfwerk:** Die Datei liegt in Testdaten (z. B. fixtures/ oder testdata/), die von der Prüfung ausgenommen sind.
The file lies in test data (such as fixtures/ or testdata/), which is left out of the scan.
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.
high Finding
Scanner: semgrep
Severity: high
Rule: 0xdea-raptor-insecure-api-strcpy-strcat
CWE: CWE-676
CRA: cra-ai-20 — Automatisierte Sicherheitstests (Annex I)
Description
A buffer overflow condition exists when a program attempts to put more data in a buffer than it can hold, or when a program attempts to put data in a memory area outside of the boundaries of a buffer.
Location
File:
fixtures/nightly/firmware/c-sensor-node/Core/Src/comms.c(line 20)Code
Remediation
Exclude fixtures/nightly from security scanning or mark it as test code.
Fingerprint:
2550252bcaa6a55b86802e3ec71c53aa760a0316f387f7d28eb8344a82262a92Generated by compliance-scanner
Open in Prüfwerk / In Prüfwerk öffnen
Prüfwerk: Die Datei liegt in Testdaten (z. B. fixtures/ oder testdata/), die von der Prüfung ausgenommen sind.
The file lies in test data (such as fixtures/ or testdata/), which is left out of the scan.
Prüfwerk: Die Datei liegt in Testdaten (z. B. fixtures/ oder testdata/), die von der Prüfung ausgenommen sind.
The file lies in test data (such as fixtures/ or testdata/), which is left out of the scan.