The second patch is the relevant one; the first patch is just a small
tweak to an existent ADD_OVERFLOW() invocation in
"common/utils/vector.c" -- because we'll need to pass unsigned arguments
to ADD_OVERFLOW() (and MUL_OVERFLOW()) going forward.
Thanks,
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