qemu/monitor
Markus Armbruster 49e56287cc 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>
2023-01-19 13:30:01 +01:00
..
hmp-cmds.c pci: Move HMP commands from monitor/ to new hw/pci/pci-hmp-cmds.c 2022-12-19 16:21:51 +01:00
hmp.c monitor: expose monitor_puts to rest of code 2022-10-06 11:53:40 +01:00
meson.build meson: add spice_headers dependency. 2020-10-15 11:14:40 +02:00
misc.c monitor/misc: Remove superfluous include statements 2022-12-15 15:02:35 +01:00
monitor-internal.h monitor: expose monitor_puts to rest of code 2022-10-06 11:53:40 +01:00
monitor.c monitor: Use ERRP_GUARD() in monitor_init() 2022-12-14 16:19:35 +01:00
qmp-cmds-control.c qapi: Implement deprecated-output=hide for QMP introspection 2021-03-19 16:05:11 +01:00
qmp-cmds.c ui: Check numeric part of expire_password argument @time properly 2023-01-19 13:30:01 +01:00
qmp.c monitor/qmp: fix race on CHR_EVENT_CLOSED without OOB 2021-05-12 17:29:11 +02:00
trace-events docs: fix references to docs/devel/tracing.rst 2021-06-02 06:51:09 +02:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00