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

Re: [PATCH] libxl: simplify and correct domain ID and CPU pool ID parsing



Hi Jan,

On Tue, 27 Oct 2026 17:00:24 +0100, Jan Beulich <jbeulich@xxxxxxxx> wrote:
> strtoul(), with a radix of 10, already guarantees that the string parsed
> consists of just digits (and leading whitespace). No need to do that check
> in advance. All which needs doing is a check for a leading digit, to
> exclude the case of leading whitespace.
> 
> This in particular avoids a domain ID argument of "" to be mis-treated as
> a reference to Dom0.
> 
> [...]

Acked-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>

Thanks,
-- 


--
Anthony Perard | Vates XCP-ng Developer

XCP-ng & Xen Orchestra - Vates solutions

web: https://vates.tech

 


Rackspace

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