public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* drivers/media/video/bt819.c: bt819_init: wrong array indexing
@ 2005-03-23  0:38 Adrian Bunk
  2005-03-23  9:07 ` [PATCH] " Ronald S. Bultje
  0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2005-03-23  0:38 UTC (permalink / raw)
  To: kraxel; +Cc: video4linux-list, linux-kernel

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-03-23  9:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-23  0:38 drivers/media/video/bt819.c: bt819_init: wrong array indexing Adrian Bunk
2005-03-23  9:07 ` [PATCH] " Ronald S. Bultje

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox