]> git.ipfire.org Git - thirdparty/pciutils.git/commitdiff
Fixed out of bounds access in VC cap formatting
authorMartin Mares <mj@ucw.cz>
Thu, 28 Jan 2010 10:09:38 +0000 (11:09 +0100)
committerMartin Mares <mj@ucw.cz>
Thu, 28 Jan 2010 10:09:38 +0000 (11:09 +0100)
ls-ecaps.c

index 6b1639d430d1fe5b1de73426d120ee75ec98dd62..fa3545f95d21ca063480c147b3e2a137e8e1b216 100644 (file)
@@ -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");