1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-23 21:34:54 +03:00

testutilsqemu: Ensure that ARG_* macros are out of range of QEMU_CAPS_*

Both are used in the same parser. Using offset values ensures that
errors are caught earlier.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa 2021-08-17 13:51:11 +02:00
parent 80340a199b
commit 725aaf794d

View File

@ -34,7 +34,7 @@ enum {
};
typedef enum {
ARG_QEMU_CAPS,
ARG_QEMU_CAPS = QEMU_CAPS_LAST + 1,
ARG_GIC,
ARG_MIGRATE_FROM,
ARG_MIGRATE_FD,