fix: missing checks and limits

This commit is contained in:
jpk68 committed 2026-09-16 08:47:15 -04:00
1 parent 8c833634ca
commit 5e93f74e19
9 files changed
+46 -8

No files matched your search

+1 -1
View File
@@ -272,7 +272,7 @@ namespace util
{
if (!len) return { };
uint8_t l = buf[0];
if (l > len) l = len;
if (l > len - 1) l = len - 1;
return { (const char *)(buf + 1), l };
}