More review changes

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
jpirnay
2026-05-02 18:42:45 +02:00
co-authored by Copilot
parent ea50449f4b
commit cc9ff5bae9
10 changed files with 108 additions and 23 deletions
+2 -1
View File
@@ -19,7 +19,8 @@ class FontInstaller {
explicit FontInstaller(SdCardFontRegistry& registry);
static constexpr size_t MAX_FAMILY_NAME_LEN = 64;
// Must fit CrossPointSettings::sdFontFamilyName[32] including NUL.
static constexpr size_t MAX_FAMILY_NAME_LEN = 31;
/// Validate a family name: alphanumeric + hyphen + underscore only, no path traversal.
static bool isValidFamilyName(const char* name);