From owner-freebsd-bugs Wed Jul 12 3:50: 7 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 35EEF37BC22 for ; Wed, 12 Jul 2000 03:50:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id DAA08974; Wed, 12 Jul 2000 03:50:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from Thingol.KryptoKom.DE (Thingol.KryptoKom.DE [194.245.91.1]) by hub.freebsd.org (Postfix) with ESMTP id D192437BC22 for ; Wed, 12 Jul 2000 03:47:14 -0700 (PDT) (envelope-from yves.jaeger@aachen.utimaco.de) Received: (from root@localhost) by Thingol.KryptoKom.DE (8.9.1/8.9.3) id MAA24766 for ; Wed, 12 Jul 2000 12:45:20 +0200 Received: from cirdan.kryptokom.de by KryptoWall via esmtpp (Version 1.0.2) id /var/KryptoWall/smtpp/kwa24761; Wed Jul 12 12:45:14 2000 Message-Id: <396C4CD0.1583F318@kryptokom.de> Date: Wed, 12 Jul 2000 12:47:44 +0200 From: Yves Jaeger To: FreeBSD-gnats-submit@freebsd.org Subject: kern/19865: atapi-cd.c does not check CDIOCREADSUBCHANNEL data format Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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