summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2010-01-28 11:09:38 +0100
committerMartin Mares <mj@ucw.cz>2010-01-28 11:09:38 +0100
commit3edae14ac2590c1e35c8c746467015a19be5d2e9 (patch)
tree24015829b9ec6c66760789536a388e98a186fd16
parente3a052da4c62603c4165a7cbaf013aa6cf8c81c3 (diff)
downloadpciutils-3edae14ac2590c1e35c8c746467015a19be5d2e9.tar.gz
Fixed out of bounds access in VC cap formatting
-rw-r--r--ls-ecaps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ls-ecaps.c b/ls-ecaps.c
index 6b1639d..fa3545f 100644
--- a/ls-ecaps.c
+++ b/ls-ecaps.c
@@ -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");