mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-18 04:22:15 +02:00
libreboot-utils: safe memcmp
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user