]> arthur.barton.de Git - bup.git/commit
Fall back to calloc when __builtin_mul_overflow isn't available
authorRob Browning <rlb@defaultvalue.org>
Sun, 19 Apr 2020 20:47:25 +0000 (15:47 -0500)
committerRob Browning <rlb@defaultvalue.org>
Mon, 11 May 2020 01:59:38 +0000 (20:59 -0500)
commit8c860f3d7fd2d0e028df1c2e252366a4c9f98130
treee0a2c873b3758bab6ff93730f6f94b7a41ab6df2
parent980e14a3bb6a9789764cb636b441c10bd91d99e6
Fall back to calloc when __builtin_mul_overflow isn't available

Check for __builtin_mul_overflow at configure time, and fall back to
calloc when it's not found.

Thanks to Greg Troxel for reporting the problem.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
config/configure
lib/bup/_helpers.c