summaryrefslogtreecommitdiff
path: root/util/libreboot-utils/lib/mkhtemp.c
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-29 22:15:27 +0100
committerLeah Rowe <leah@libreboot.org>2026-03-29 23:55:38 +0100
commit7fb0b2f69293f0fb0e83e9b125fbd658503147f0 (patch)
treef7c119ee9dc7ffbb6ad62bc360ddc52212413167 /util/libreboot-utils/lib/mkhtemp.c
parent01aa95ec15ed5a6e519f1d3887e105a40e17b84c (diff)
libreboot-utils: safe memcmp
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/libreboot-utils/lib/mkhtemp.c')
-rw-r--r--util/libreboot-utils/lib/mkhtemp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/libreboot-utils/lib/mkhtemp.c b/util/libreboot-utils/lib/mkhtemp.c
index bba8a7ca..2ef26d67 100644
--- a/util/libreboot-utils/lib/mkhtemp.c
+++ b/util/libreboot-utils/lib/mkhtemp.c
@@ -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;