17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-17 05:09:20 +02:00

fix: sonar sast fixes - sonar.yml, nosonar, linux chmod modification

This commit is contained in:
jerrrrycho
2026-09-28 21:07:53 +02:00
committed by GitHub
parent 8fbb482350
commit 4137f5504a
7 changed files with 36 additions and 11 deletions

View File

@@ -399,7 +399,7 @@ void uart_input::poll()
char buf[buffer.size() * 3 + 1];
size_t pos = 0;
for (uint8_t b : buffer)
pos += sprintf(&buf[pos], "%02X ", b);
pos += snprintf(&buf[pos], sizeof(buf) - pos, "%02X ", b);
WriteLog("uart: rx: " + std::string(buf));
}
@@ -635,7 +635,7 @@ void uart_input::poll()
buf[ buffer.size() * 3 ] = 0;
size_t pos = 0;
for (uint8_t b : buffer)
pos += sprintf(&buf[pos], "%02X ", b);
pos += snprintf(&buf[pos], sizeof(buf) - pos, "%02X ", b);
WriteLog("uart: tx: " + std::string(buf));
}