Stefan Hajnoczi <stefa...@redhat.com> 于2024年5月7日周二 20:06写道: > > cvtnum() parses positive int64_t values and returns a negative errno on > failure. Print errors and return early when cvtnum() fails. > > While we're at it, also reject nr_zones values greater or equal to 2^32 > since they cannot be represented. > > Reported-by: Peter Maydell <peter.mayd...@linaro.org> > Cc: Sam Li <faithilike...@gmail.com> > Signed-off-by: Stefan Hajnoczi <stefa...@redhat.com> > --- > qemu-io-cmds.c | 48 +++++++++++++++++++++++++++++++++++++++++++++++- > 1 file changed, 47 insertions(+), 1 deletion(-)
Reviewed-by: Sam Li <faithilike...@gmail.com> Hi Stefan, Thank you for fixing that. I've been a little busy with moving house lately :) Sam