Date: Wed, 12 Jul 2000 12:47:44 +0200 From: Yves Jaeger <yves.jaeger@aachen.utimaco.de> To: FreeBSD-gnats-submit@freebsd.org Subject: kern/19865: atapi-cd.c does not check CDIOCREADSUBCHANNEL data format Message-ID: <396C4CD0.1583F318@kryptokom.de>
next in thread | raw e-mail | index | archive | help
>Number: 19865
>Category: kern
>Synopsis: atapi-cd.c does not check CDIOCREADSUBCHANNEL data format
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Jul 12 03:50:03 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Yves Jaeger
>Release: FreeBSD 3.2-RELEASE i386
>Organization:
Utimaco Safeware AG
>Environment:
Kernel configuration that uses atapi-cd.c
>Description:
cdcontrol shows the wrong media status if atapi-cd.c is used.
>How-To-Repeat:
insert a disk in a cd-rom drive, run cdcontrol and then enter
the command
status media
then you'll see a media catalog information but no output should
displayed
>Fix:
*** atapi-cd.c.orig Mon Jul 10 13:52:23 2000
--- atapi-cd.c Mon Jul 10 13:57:24 2000
***************
*** 751,756 ****
--- 751,762 ----
u_long len = args->data_len;
int abslba, rellba;
+ /* the following 4 lines are inserted by yves jaeger on
jul 9, 2000 */
+ /* currently supported is only the data_format
CD_CURRENT_POSITION */
+ /* TODO: support other values for
data_format */
+ if (args->data_format != CD_CURRENT_POSITION)
+ return (EINVAL);
+
if (len > sizeof(data) ||
len < sizeof(struct cd_sub_channel_header))
return EINVAL;
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?396C4CD0.1583F318>
