diff options
author | 2023-01-09 20:03:05 +0100 | |
---|---|---|
committer | 2023-01-19 13:30:01 +0100 | |
commit | 49e56287cccfe8b5def4bc4916f367b9a0303161 (patch) | |
tree | 606bfafef55b80229459ea67b3c0cf23588f4d96 /linux-user/syscall.c | |
parent | Merge tag 'pull-tpm-2023-01-17-1' of https://github.com/stefanberger/qemu-tpm into staging (diff) | |
download | qemu-49e56287cccfe8b5def4bc4916f367b9a0303161.tar.xz qemu-49e56287cccfe8b5def4bc4916f367b9a0303161.zip |
ui: Check numeric part of expire_password argument @time properly
When argument @time isn't 'now' or 'never', we parse it as an integer,
optionally prefixed with '+'. If parsing fails, we silently assume
zero. Report an error and fail instead.
While there, use qemu_strtou64() instead of strtoull() so
checkpatch.pl won't complain.
Aside: encoding numbers in strings is bad QMP practice.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20230109190321.1056914-2-armbru@redhat.com>
Diffstat (limited to 'linux-user/syscall.c')
0 files changed, 0 insertions, 0 deletions