From c700737d8db9f25fd6f3a7a58a01ab41b8aabe2c Mon Sep 17 00:00:00 2001 From: Packit Bot Date: May 04 2021 22:15:56 +0000 Subject: Apply patch 0024-dmidecode-Fix-crash-with-u-option.patch patch_name: 0024-dmidecode-Fix-crash-with-u-option.patch present_in_specfile: true --- diff --git a/dmidecode.c b/dmidecode.c index 9646e25..eac780f 100644 --- a/dmidecode.c +++ b/dmidecode.c @@ -248,9 +248,9 @@ static void dmi_dump(const struct dmi_header *h) { int j, l = strlen(s) + 1; - off = 0; for (row = 0; row < ((l - 1) >> 4) + 1; row++) { + off = 0; for (j = 0; j < 16 && j < l - (row << 4); j++) off += sprintf(raw_data + off, j ? " %02X" : "%02X",