mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user