Reject oversized flood retry prefix lists without truncation

This commit is contained in:
mikecarper committed 2026-10-16 03:13:33 -07:00
1 parent e980d983be
commit 4dc3b43f10
2 files changed
+49 -3

No files matched your search

+1 -1
View File
@@ -619,7 +619,7 @@ static bool parseFloodRetryPrefixList(uint8_t dest[][FLOOD_RETRY_PREFIX_LEN], ui
}
char local[FLOOD_RETRY_LIST_TEXT_MAX];
StrHelper::strncpy(local, value, sizeof(local));
if (!copyCLIArgument(local, sizeof(local), value)) return false;
const char* parts[FLOOD_RETRY_LIST_PREFIXES + 1];
int num = mesh::Utils::parseTextParts(local, parts, FLOOD_RETRY_LIST_PREFIXES + 1);
if (num > max_prefixes) {