From: Keir Fraser Subject: Re: [PATCH] Make ACPI DMAR parsing more robust Date: Thu, 03 Apr 2008 11:21:48 +0100 Message-ID: References: <18419.47951.625663.623377@gargle.gargle.HOWL> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <18419.47951.625663.623377@gargle.gargle.HOWL> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Espen Skoglund , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Regarding the table length sanity check -- depth is set to the number of acp_pci_path structures in the table. But then we only follow the path to depth-1. Is that correct? Also I changed the test to '--depth >= 0' which is equivalent and a bit easier to read imo. -- Keir On 2/4/08 17:58, "Espen Skoglund" wrote: > Parsing ACPI related VT-d tables may cause infinite loop due to u8 > value wraparound. Also add sanity check on table length entry. > > eSk > > > Signed-off-by: Espen Skoglund > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel