[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 21/21] libxc: range checks in xc_dom_p2m_host and _guest



Andrew Cooper writes ("Re: [PATCH 21/21] libxc: range checks in xc_dom_p2m_host 
and _guest"):
> On 06/06/13 19:52, Ian Jackson wrote:
> > +    if (pfn >= dom->rambase_pfn + dom->total_pages)
> > +        return INVALID_MFN;
> 
> Need to check whether pfn < dom->rambase_pfn otherwise you can just as
> easily underflow the array.

Duh, yes, thanks.

Ian.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.