summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-12-23 09:50:44 -0500
committerNick Mathewson <nickm@torproject.org>2016-12-23 09:50:44 -0500
commitcea1a4e19d1ed16cf8509554a52fe73a001fef46 (patch)
treed9e343c7333c65c402ecacac1f9f698ee9e46e0f /src/common
parenta23fd1578612051a3ac804c12a629f6a5cfa296e (diff)
downloadtor-cea1a4e19d1ed16cf8509554a52fe73a001fef46.tar.gz
tor-cea1a4e19d1ed16cf8509554a52fe73a001fef46.zip
This is no longer inline.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/util.c5
1 files changed, 3 insertions, 2 deletions
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