From: Paul Pluzhnikov Date: Thu, 19 Dec 2013 18:48:01 +0000 (-0800) Subject: Fix incorrect power of 2 check in last commit. X-Git-Tag: glibc-2.19~232 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b627fdd58554bc36bd344dc40a8787c4b7a9cc46;p=thirdparty%2Fglibc.git Fix incorrect power of 2 check in last commit. --- diff --git a/elf/dl-misc.c b/elf/dl-misc.c index e5c76a75a0b..ad2d8ac9647 100644 --- 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);