v1: https://listman.redhat.com/archives/libguestfs/2021-November/msg00245.html Fixed the buggy assert()s in the second patch; re-ran "make check". Thanks & sorry, Laszlo Laszlo Ersek (2): utils/vector: pass only unsigned arguments to (ADD|MUL)_OVERFLOW common/include/checked-overflow: provide fallback common/include/checked-overflow.h | 160 ++++++++++++++++++++++-- common/utils/Makefile.am | 8 +- common/utils/test-checked-overflow.c | 177 +++++++++++++++++++++++++++ common/utils/vector.c | 2 +- configure.ac | 6 + 5 files changed, 338 insertions(+), 15 deletions(-) create mode 100644 common/utils/test-checked-overflow.c base-commit: b9a2c12da886decf662f4e2bbcd1699a200676aa -- 2.19.1.3.g30247aa5d201