git.samba.org
/
jlayton
/
glibc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix incorrect power of 2 check in last commit.
[jlayton/glibc.git]
/
elf
/
dl-misc.c
diff --git
a/elf/dl-misc.c
b/elf/dl-misc.c
index e5c76a75a0b33f939af62c60a5df12c6d7d91951..ad2d8ac9647feabf9dd1c57dd244c2c255724f81 100644
(file)
--- a/
elf/dl-misc.c
+++ b/
elf/dl-misc.c
@@
-396,7
+396,7
@@
__signal_safe_memalign (size_t boundary, size_t size)
boundary = sizeof (*header);
/* Boundary must be a power of two. */
- if (
(boundary & (boundary - 1)) == 0
)
+ if (
!powerof2(boundary)
)
return NULL;
size_t pg = GLRO (dl_pagesize);