From: Peter Krempa Date: Tue, 17 Aug 2021 11:51:11 +0000 (+0200) Subject: testutilsqemu: Ensure that ARG_* macros are out of range of QEMU_CAPS_* X-Git-Tag: v7.7.0-rc1~130 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=725aaf794d3e867972998669ab1bf94827880fbb;p=thirdparty%2Flibvirt.git 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 Reviewed-by: Ján Tomko --- diff --git a/tests/testutilsqemu.h b/tests/testutilsqemu.h index 2e9ce8ec62..c6da0745a0 100644 --- a/tests/testutilsqemu.h +++ b/tests/testutilsqemu.h @@ -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,