mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-18 14:12:44 +02:00
libreboot-utils: safe memcmp
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
@@ -567,7 +567,7 @@ mkhtemp(int *fd,
|
||||
if_err(fname_len > template_len, EOVERFLOW))
|
||||
return -1;
|
||||
|
||||
if (if_err(memcmp(fname, template + template_len - fname_len,
|
||||
if (if_err(vcmp(fname, template + template_len - fname_len,
|
||||
fname_len) != 0, EINVAL))
|
||||
return -1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user