diff options
author | Martin Mares <mj@ucw.cz> | 2010-01-28 11:09:38 +0100 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2010-01-28 11:09:38 +0100 |
commit | 3edae14ac2590c1e35c8c746467015a19be5d2e9 (patch) | |
tree | 24015829b9ec6c66760789536a388e98a186fd16 | |
parent | e3a052da4c62603c4165a7cbaf013aa6cf8c81c3 (diff) | |
download | pciutils-3edae14ac2590c1e35c8c746467015a19be5d2e9.tar.gz |
Fixed out of bounds access in VC cap formatting
-rw-r--r-- | ls-ecaps.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -222,8 +222,8 @@ cap_vc(struct device *d, int where) int arb_table_pos; int i, j; static const char ref_clocks[][6] = { "100ns" }; - static const char arb_selects[][7] = { "Fixed", "WRR32", "WRR64", "WRR128" }; - static const char vc_arb_selects[][8] = { "Fixed", "WRR32", "WRR64", "WRR128", "TWRR128", "WRR256" }; + static const char arb_selects[8][7] = { "Fixed", "WRR32", "WRR64", "WRR128", "??4", "??5", "??6", "??7" }; + static const char vc_arb_selects[8][8] = { "Fixed", "WRR32", "WRR64", "WRR128", "TWRR128", "WRR256", "??6", "??7" }; char buf[8]; printf("Virtual Channel\n"); |