From: Martin Mares Date: Thu, 28 Jan 2010 10:09:38 +0000 (+0100) Subject: Fixed out of bounds access in VC cap formatting X-Git-Tag: v3.1.7~4 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=3edae14ac2590c1e35c8c746467015a19be5d2e9;p=pciutils.git Fixed out of bounds access in VC cap formatting --- 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");