From a6d0112d863c6ab0be806f36823b584c48636a52 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sat, 3 Dec 2022 11:49:52 +0000 Subject: util/nvtutil: fix out of bounds error the error would have never been triggered, because it never went over 11, but if this code were to be copied elsewhere, it would be problematic --- util/nvmutil/nvmutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/nvmutil') diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c index 5a28a9a7..11484533 100644 --- a/util/nvmutil/nvmutil.c +++ b/util/nvmutil/nvmutil.c @@ -220,7 +220,7 @@ hextonum(char chs) static int macfd; static uint8_t *rmac = NULL; static int random; - if (random > 15) { + if (random > 11) { close(macfd); free(rmac); rmac = NULL; -- cgit v1.2.1