This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.20-332-gfc56e97
- From: sje at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 11 Dec 2014 16:14:47 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.20-332-gfc56e97
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via fc56e970934d9e936108240f3dc05e5e131f5772 (commit)
from 40e53917ea9e92ac14ada7bf177f419e5c0855ef (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=fc56e970934d9e936108240f3dc05e5e131f5772
commit fc56e970934d9e936108240f3dc05e5e131f5772
Author: Steve Ellcey <sellcey@mips.com>
Date: Thu Dec 11 08:14:17 2014 -0800
2014-12-11 Steve Ellcey <sellcey@imgtec.com>
* malloc/malloc.c: Fix powerof2 check.
diff --git a/ChangeLog b/ChangeLog
index b002146..3bf1883 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-12-11 Steve Ellcey <sellcey@imgtec.com>
+
+ * malloc/malloc.c: Fix powerof2 check.
+
2014-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
* locale/programs/locfile.h (maybe_swap_uint32):
diff --git a/malloc/malloc.c b/malloc/malloc.c
index 6bfb859..cb91b97 100644
--- a/malloc/malloc.c
+++ b/malloc/malloc.c
@@ -4973,7 +4973,7 @@ __posix_memalign (void **memptr, size_t alignment, size_t size)
/* Test whether the SIZE argument is valid. It must be a power of
two multiple of sizeof (void *). */
if (alignment % sizeof (void *) != 0
- || !powerof2 (alignment / sizeof (void *)) != 0
+ || !powerof2 (alignment / sizeof (void *))
|| alignment == 0)
return EINVAL;
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 4 ++++
malloc/malloc.c | 2 +-
2 files changed, 5 insertions(+), 1 deletions(-)
hooks/post-receive
--
GNU C Library master sources