Set of patches fixing the recently reported issues. Peter Krempa (9): virDomainDefParseBootInitOptions: Don't leak 'name' on failure virBitmapShrink: Do not attempt to clear bits beyond end of buffer virDomainFeaturesHyperVDefParse: Don't overwrite hypervisor vendor_id virDomainFeaturesTCGDefParse: Don't leak 'tcg_features' when '<tcg>' feature is repeated virDomainFeaturesDefParse: Add comment warning about features being specified repeatedly internal: Add helper macro for checking multiply and add overflows virconf: Properly fix numeric overflow when parsing numbers in conf files virDiskNameParse: Fix integer overflow in disk name parsing qemuxmlconfttest: Add test case for invalid disk target src/conf/domain_conf.c | 23 +++++++---- src/internal.h | 11 ++++++ src/util/virbitmap.c | 6 +++ src/util/virconf.c | 6 ++- src/util/virutil.c | 10 ++++- .../disk-target-overflow.x86_64-latest.err | 1 + .../qemuxmlconfdata/disk-target-overflow.xml | 29 ++++++++++++++ tests/qemuxmlconftest.c | 1 + tests/virbitmaptest.c | 39 ++++++++++++++++--- 9 files changed, 109 insertions(+), 17 deletions(-) create mode 100644 tests/qemuxmlconfdata/disk-target-overflow.x86_64-latest.err create mode 100644 tests/qemuxmlconfdata/disk-target-overflow.xml -- 2.46.0