Even if a type 33 structure is too short, we can still display its type name as we do for all other structure types.
Signed-off-by: Jean Delvare <jdelv...@suse.de> --- dmidecode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- dmidecode.orig/dmidecode.c 2020-02-17 18:12:26.033055139 +0100 +++ dmidecode/dmidecode.c 2020-02-17 18:13:12.033583499 +0100 @@ -4807,8 +4807,8 @@ static void dmi_decode(const struct dmi_ break; case 33: /* 7.34 64-bit Memory Error Information */ - if (h->length < 0x1F) break; printf("64-bit Memory Error Information\n"); + if (h->length < 0x1F) break; printf("\tType: %s\n", dmi_memory_error_type(data[0x04])); printf("\tGranularity: %s\n", -- Jean Delvare SUSE L3 Support _______________________________________________ https://lists.nongnu.org/mailman/listinfo/dmidecode-devel