Skip to content

Commit 974e66c

Browse files
committed
Fix an array overrun while decoding the system event log status
(DMI type 15).
1 parent 5fced58 commit 974e66c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dmidecode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1806,7 +1806,7 @@ static void dmi_event_log_status(u8 code)
18061806
};
18071807

18081808
printf(" %s, %s",
1809-
valid[code&(1<<0)], full[code&(1<<1)]);
1809+
valid[(code>>0)&1], full[(code>>1)&1]);
18101810
}
18111811

18121812
static void dmi_event_log_address(u8 method, u8 *p)

0 commit comments

Comments
 (0)