drivers/media/video/bt819.c: bt819_init: wrong array indexing
From: Adrian Bunk
Date: Tue Mar 22 2005 - 19:40:16 EST
The Coverity checker found the following bug in array indexing in the
function bt819_init in drivers/media/video/bt819.c:
init[0x19*2-1] = decoder->norm == 0 ? 115 : 93;
I don't know whether the other array indexes in this function are
correct, but this is definitely wrong:
It indexes element 49 wile only the elements 0-43 are available.
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/