commit | 53e416e708fabf5738f00c77dec36882ccb6fbc8 | [log] [tgz] |
---|---|---|
author | hailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | Tue Jul 13 00:04:52 2010 +0000 |
committer | hailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | Tue Jul 13 00:04:52 2010 +0000 |
tree | 1b6200a4cae2469118f434f59e4d7f74f85f9102 | |
parent | 4ea73c1982e7a462d5298485863f1973d48b3c08 [diff] |
Fix out-of-bounds ICH FREG permission printing. A bit was masked, but not shifted, and that led to worst-case accesses of index 24 in an array with 4 members. I've improved readability in the variable declaration block as well. Thanks to Stephen Kou for reporting the bug. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Stephen Kou <stephen@hyarros.com> git-svn-id: svn://coreboot.org/flashrom/trunk@1076 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1