From 999833361b89c2dcc4656d40c2399cc1c14ead5d Mon Sep 17 00:00:00 2001 From: "NathanNeurotic (Ripto)" <109461996+NathanNeurotic@users.noreply.github.com> Date: Tue, 6 Jan 2026 14:39:03 -0800 Subject: [PATCH] Add cppcheck suppression for history read --- src/OSDHistory.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/OSDHistory.c b/src/OSDHistory.c index 38da4bf..eaa29c6 100644 --- a/src/OSDHistory.c +++ b/src/OSDHistory.c @@ -130,6 +130,8 @@ int LoadHistoryFile(int port) result = 0; if (fd >= 0) { /* Flawfinder: ignore (bounded read into fixed-size HistoryEntries buffer) */ + // cppcheck-suppress readBufferSize + // cppcheck-suppress bufferAccessOutOfBounds ssize_t r = read(fd, HistoryEntries, HISTORY_SIZE); if (r != (ssize_t)HISTORY_SIZE) result = -EIO;