[PATCH v2 17/23] testutilsqemu: Ensure that ARG_* macros are out of range of QEMU_CAPS_*
Peter Krempa
pkrempa at redhat.com
Tue Aug 17 16:25:18 UTC 2021
Both are used in the same parser. Using offset values ensures that
errors are caught earlier.
Signed-off-by: Peter Krempa <pkrempa at redhat.com>
---
tests/testutilsqemu.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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,
--
2.31.1
More information about the libvir-list
mailing list