diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2010-07-13 00:04:52 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2010-07-13 00:04:52 +0000 |
commit | ab922779e34fae2e25000614ddd285c8a7994ca0 (patch) | |
tree | 1b6200a4cae2469118f434f59e4d7f74f85f9102 /cli_classic.c | |
parent | 550f5c836c1c79a430af8d9275aedebc9c35eb8b (diff) | |
download | flashrom-ab922779e34fae2e25000614ddd285c8a7994ca0.tar.gz flashrom-ab922779e34fae2e25000614ddd285c8a7994ca0.tar.bz2 flashrom-ab922779e34fae2e25000614ddd285c8a7994ca0.zip |
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.
Corresponding to flashrom svn r1076.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Stephen Kou <stephen@hyarros.com>
Diffstat (limited to 'cli_classic.c')
0 files changed, 0 insertions, 0 deletions