libreboot-utils: safe memcmp

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-29 22:15:27 +01:00
parent 01aa95ec15
commit 7fb0b2f692
5 changed files with 38 additions and 4 deletions
+1
View File
@@ -378,6 +378,7 @@ char *smalloc(char **buf, size_t size);
void *vmalloc(void **buf, size_t size);
int slen(const char *scmp, size_t maxlen,
size_t *rval);
int vcmp(const void *s1, const void *s2, size_t n);
int scmp(const char *a, const char *b,
size_t maxlen, int *rval);
int sdup(const char *s,