module-avb: add UTF-8 validation function

This commit is contained in:
Nils Tonnaett 2026-05-12 23:34:44 -07:00 committed by Wim Taymans
parent 6a0c0d45ff
commit b47c07b9cd
3 changed files with 91 additions and 0 deletions

View file

@ -0,0 +1,12 @@
/* SPDX-FileCopyrightText: Copyright © 2026 Nils Tonnaett*/
/* SPDX-License-Identifier: MIT */
#ifndef AVB_STRINGS_H
#define AVB_STRINGS_H
#include <stddef.h>
#include <stdint.h>
int validate_utf8(uint8_t *str, size_t len);
#endif /* AVB_STRINGS_H */