From 3edae14ac2590c1e35c8c746467015a19be5d2e9 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Thu, 28 Jan 2010 11:09:38 +0100 Subject: [PATCH] Fixed out of bounds access in VC cap formatting --- ls-ecaps.c | 4 ++-- 1 file 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"); -- 2.39.2