mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
2014-12-11 Steve Ellcey <sellcey@imgtec.com>
* malloc/malloc.c: Fix powerof2 check.
This commit is contained in:
@@ -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>
|
2014-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
|
||||||
|
|
||||||
* locale/programs/locfile.h (maybe_swap_uint32):
|
* locale/programs/locfile.h (maybe_swap_uint32):
|
||||||
|
@@ -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
|
/* Test whether the SIZE argument is valid. It must be a power of
|
||||||
two multiple of sizeof (void *). */
|
two multiple of sizeof (void *). */
|
||||||
if (alignment % sizeof (void *) != 0
|
if (alignment % sizeof (void *) != 0
|
||||||
|| !powerof2 (alignment / sizeof (void *)) != 0
|
|| !powerof2 (alignment / sizeof (void *))
|
||||||
|| alignment == 0)
|
|| alignment == 0)
|
||||||
return EINVAL;
|
return EINVAL;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user