v2: - https://listman.redhat.com/archives/libguestfs/2021-November/msg00249.html - https://listman.redhat.com/archives/libguestfs/2021-November/msg00255.html Please see the Notes section on each patch. I built this version on RHEL7 as well, and I ran the test suite. I had to forcibly disable two tests, test-tls and test-cache-max-size, for the suite to complete. I didn't know initially if this was expected on RHEL7, but then I peeked at the CentOS 7 SRPM, and the spec file in that disables numerous tests, including TLS and cache related ones. Thanks, Laszlo Laszlo Ersek (3): common: rename UNIQUE_VAR to UNIQUE_NAME, and move it to its own header utils/vector: pass only unsigned arguments to (ADD|MUL)_OVERFLOW common/include/checked-overflow: provide fallback .gitignore | 1 + common/include/Makefile.am | 6 + common/include/checked-overflow.h | 167 +++++++++++++++++++++-- common/include/test-checked-overflow.c | 177 +++++++++++++++++++++++++ common/include/unique-name.h | 41 ++++++ common/utils/cleanup.h | 31 ++--- common/utils/vector.c | 2 +- configure.ac | 6 + filters/exitwhen/Makefile.am | 3 +- filters/ext2/Makefile.am | 3 +- filters/limit/Makefile.am | 3 +- filters/log/Makefile.am | 3 +- filters/offset/Makefile.am | 3 +- filters/xz/Makefile.am | 3 +- plugins/cc/Makefile.am | 1 + plugins/cdi/Makefile.am | 1 + plugins/iso/Makefile.am | 1 + plugins/memory/Makefile.am | 3 +- plugins/ondemand/Makefile.am | 3 +- plugins/perl/Makefile.am | 3 +- plugins/python/Makefile.am | 3 +- plugins/split/Makefile.am | 3 +- plugins/tmpdisk/Makefile.am | 3 +- server/internal.h | 2 +- tests/Makefile.am | 6 +- 25 files changed, 434 insertions(+), 44 deletions(-) create mode 100644 common/include/unique-name.h create mode 100644 common/include/test-checked-overflow.c base-commit: b9a2c12da886decf662f4e2bbcd1699a200676aa -- 2.19.1.3.g30247aa5d201