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 -1
View File
@@ -28,7 +28,7 @@ main(int argc, char **argv)
xpledgex("stdio", NULL);
buf = rmalloc(size);
if (!memcmp(buf, buf + (size >> 1), size >> 1))
if (!vcmp(buf, buf + (size >> 1), size >> 1))
same = 1;
if (argc < 2) /* no spew */