From: Nick Mathewson Date: Fri, 23 Dec 2016 14:50:44 +0000 (-0500) Subject: This is no longer inline. X-Git-Tag: tor-0.3.0.2-alpha~77 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cea1a4e19d1ed16cf8509554a52fe73a001fef46;p=thirdparty%2Ftor.git This is no longer inline. --- diff --git a/src/common/util.c b/src/common/util.c index d02eb664d7..824b4fbc67 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -187,8 +187,9 @@ tor_malloc_zero_(size_t size DMALLOC_PARAMS) * 0xfffe0001. */ #define SQRT_SIZE_MAX_P1 (((size_t)1) << (sizeof(size_t)*4)) -/** Return non-zero if and only if the product of the arguments is exact. */ -inline int +/** Return non-zero if and only if the product of the arguments is exact, + * and cannot overflow. */ +int size_mul_check(const size_t x, const size_t y) { /* This first check is equivalent to