diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libc/stdlib/malloc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/libc/stdlib/malloc.c b/src/lib/libc/stdlib/malloc.c index 40bf665249..6f2a48ba4c 100644 --- a/src/lib/libc/stdlib/malloc.c +++ b/src/lib/libc/stdlib/malloc.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: malloc.c,v 1.159 2014/05/01 04:08:13 tedu Exp $ */ | 1 | /* $OpenBSD: malloc.c,v 1.160 2014/05/07 20:07:59 halex Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2008, 2010, 2011 Otto Moerbeek <otto@drijf.net> | 3 | * Copyright (c) 2008, 2010, 2011 Otto Moerbeek <otto@drijf.net> |
4 | * Copyright (c) 2012 Matthew Dempsky <matthew@openbsd.org> | 4 | * Copyright (c) 2012 Matthew Dempsky <matthew@openbsd.org> |
@@ -1378,7 +1378,8 @@ realloc(void *ptr, size_t size) | |||
1378 | } | 1378 | } |
1379 | 1379 | ||
1380 | 1380 | ||
1381 | /* this is sqrt(SIZE_MAX+1), as s1*s2 <= SIZE_MAX | 1381 | /* |
1382 | * This is sqrt(SIZE_MAX+1), as s1*s2 <= SIZE_MAX | ||
1382 | * if both s1 < MUL_NO_OVERFLOW and s2 < MUL_NO_OVERFLOW | 1383 | * if both s1 < MUL_NO_OVERFLOW and s2 < MUL_NO_OVERFLOW |
1383 | */ | 1384 | */ |
1384 | #define MUL_NO_OVERFLOW (1UL << (sizeof(size_t) * 4)) | 1385 | #define MUL_NO_OVERFLOW (1UL << (sizeof(size_t) * 4)) |