From: Adrian Bunk <bunk@stusta.de>
To: kraxel@bytesex.org
Cc: video4linux-list@redhat.com, linux-kernel@vger.kernel.org
Subject: drivers/media/video/bt819.c: bt819_init: wrong array indexing
Date: Wed, 23 Mar 2005 01:38:08 +0100 [thread overview]
Message-ID: <20050323003808.GX1948@stusta.de> (raw)
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
next reply other threads:[~2005-03-23 0:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-23 0:38 Adrian Bunk [this message]
2005-03-23 9:07 ` [PATCH] Re: drivers/media/video/bt819.c: bt819_init: wrong array indexing Ronald S. Bultje
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050323003808.GX1948@stusta.de \
--to=bunk@stusta.de \
--cc=kraxel@bytesex.org \
--cc=linux-kernel@vger.kernel.org \
--cc=video4linux-list@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox