Review changes

This commit is contained in:
jpirnay
2026-05-20 19:34:27 +02:00
parent dc15186e22
commit 78e1d2eacb
3 changed files with 43 additions and 3 deletions
+5
View File
@@ -25,6 +25,11 @@ class FontInstaller {
/// Validate a family name: alphanumeric + hyphen + underscore only, no path traversal.
static bool isValidFamilyName(const char* name);
/// Validate a font file name as it appears in a manifest entry: non-empty, length-bounded,
/// no absolute paths, no backslashes, no traversal components. Slashes are allowed for
/// "<family>/<file>"-style entries.
static bool isValidFontFileName(const char* name);
/// Ensure /.crosspoint/fonts/<family>/ directory exists.
bool ensureFamilyDir(const char* familyName);