Skip to contentSkip to conversation

drivers/telephony/ixj: fix an array overrun

PATCH New Adrian Bunk 1 participant 1 message Nov 6, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/telephony/ixj: fix an array overrun

The Coverity checker noted that in drivers/telephony/ixj.c:ixj_build_filter_cadence(), filter_en[4] or filter_en[5] could be written to.

drivers/telephony/ixj.h renamed from drivers/telephony/ixj.h.old +1 -1
@@ -1295,7 +1295,7 @@
 	Proc_Info_Type Info_write;
 	unsigned short frame_count;
 	unsigned int filter_hist[4];
-	unsigned char filter_en[4];
+	unsigned char filter_en[6];
 	unsigned short proc_load;
 	unsigned long framesread;
 	unsigned long frameswritten;