* promiscuous bttv parameter checking (2.4.21-pre3)
@ 2003-02-05 20:29 Alexandre Pereira Nunes
0 siblings, 0 replies; only message in thread
From: Alexandre Pereira Nunes @ 2003-02-05 20:29 UTC (permalink / raw)
To: linux-kernel; +Cc: kraxel
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-02-05 20:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-05 20:29 promiscuous bttv parameter checking (2.4.21-pre3) Alexandre Pereira Nunes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox