From owner-acpi-jp@jp.FreeBSD.org Mon Sep 22 23:53:22 2003
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) id h8MErMR95643;
	Mon, 22 Sep 2003 23:53:22 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from Cantor.suse.de (ns.suse.de [195.135.220.2])
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) with ESMTP/inet id h8MErKJ95633
	for <acpi-jp@jp.freebsd.org>; Mon, 22 Sep 2003 23:53:21 +0900 (JST)
	(envelope-from ak@suse.de)
Received: from Hermes.suse.de (Hermes.suse.de [195.135.221.8])
	(using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits))
	(No client certificate requested)
	by Cantor.suse.de (Postfix) with ESMTP
	id E3ACC1642062; Mon, 22 Sep 2003 16:53:17 +0200 (CEST)
From: Andi Kleen <ak@suse.de>
To: Nate Lawson <nate@root.org>
Cc: acpi-jp@jp.FreeBSD.org, acpi-devel@lists.sourceforge.net
Message-ID: <20030922145315.GC13165@wotan.suse.de>
References: <20030918221109.L16619@root.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20030918221109.L16619@root.org>
Reply-To: acpi-jp@jp.FreeBSD.org
Precedence: list
Date: Mon, 22 Sep 2003 16:53:15 +0200
X-Sequence: acpi-jp 2688
Subject: [acpi-jp 2688] Re: [ACPI] [PATCH] invalid resource lists and extra checking
Sender: owner-acpi-jp@jp.FreeBSD.org
X-Originator: ak@suse.de
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+030902

> --- rsaddr.c	13 Jul 2003 22:43:31 -0000	1.1.1.11
> +++ rsaddr.c	19 Sep 2003 04:59:50 -0000
> @@ -168,6 +168,10 @@
>      Buffer += 1;
>      ACPI_MOVE_16_TO_16 (&Temp16, Buffer);
> 
> +    /* Check for the minimum length. */
> +    if (Temp16 < 13)
> +        return_ACPI_STATUS (AE_AML_INVALID_RESOURCE_TYPE);

For which acpica version is this exactly? I tried to apply it to a Linux
tree which has nearly the latest, but it rejected on every hunk. 
The file is also repetive enough that hand applying looks a bit risky.

Can you perhaps post a patch against the latest ACPICA version?

-Andi
