Re: [PATCH] x86/hvmloader: adjust strtoll() to parse hex numbers without 0x prefix

2025-07-23 Thread Jan Beulich
On 23.07.2025 17:19, Roger Pau Monne wrote: > The current strtoll() implementation in hvmloader requires hex number to be > prefixed with 0x, otherwise strtoll() won't parse them correctly even when > calling the function with base == 16. > > Fix this by not unconditionally setting the base to 10

[PATCH] x86/hvmloader: adjust strtoll() to parse hex numbers without 0x prefix

2025-07-23 Thread Roger Pau Monne
The current strtoll() implementation in hvmloader requires hex number to be prefixed with 0x, otherwise strtoll() won't parse them correctly even when calling the function with base == 16. Fix this by not unconditionally setting the base to 10 when the string is not 0 prefixed, this also allows pa