public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Alexandre Pereira Nunes <alex@PolesApart.dhs.org>
To: linux-kernel@vger.kernel.org
Cc: kraxel@bytesex.org
Subject: promiscuous bttv parameter checking (2.4.21-pre3)
Date: Wed, 05 Feb 2003 18:29:36 -0200	[thread overview]
Message-ID: <3E417430.9000101@PolesApart.dhs.org> (raw)

Hi,

As of linux 2.4.21-pre3, bttv driver fails to check the "channel" 
attribute correctly. This is caused because there is no check for 
negative values on the  channel parameter (at least ) in ioctls 
VIDIOCGCHAN (bttv-driver.c:1510) and VIDIOCSCHAN (same file, at line 
1537). Negative parameters, though invalid, are passed along.

While in the first case (VIDIOCGCHAN) I see no dark effects other than 
the wacky channel name in the name member of the returned structure, it 
is possible that passing the negative value in VIDIOCSCHAN spots 
side-effects, specially in the function bt848_muxsel.


(A cc: went to the maintainer. Any questions please cc: me since I'm not 
subscribed to the kernel mailing list).


Best regards,


Alexandre



                 reply	other threads:[~2003-02-05 20:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=3E417430.9000101@PolesApart.dhs.org \
    --to=alex@polesapart.dhs.org \
    --cc=kraxel@bytesex.org \
    --cc=linux-kernel@vger.kernel.org \
    /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