Update.
2004-03-18 Ulrich Drepper <drepper@redhat.com> * malloc/malloc.c (__posix_memalign): Correct alignment check. Reported by Don Heller <dheller@cse.psu.edu>.
This commit is contained in:
parent
14c3586351
commit
de02bd0553
|
@ -1,3 +1,8 @@
|
||||||
|
2004-03-18 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* malloc/malloc.c (__posix_memalign): Correct alignment check.
|
||||||
|
Reported by Don Heller <dheller@cse.psu.edu>.
|
||||||
|
|
||||||
2004-03-18 Jakub Jelinek <jakub@redhat.com>
|
2004-03-18 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
* sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Remove hwcap
|
* sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Remove hwcap
|
||||||
|
|
|
@ -5418,7 +5418,9 @@ __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 || !powerof2 (alignment) != 0)
|
if (alignment % sizeof (void *) != 0
|
||||||
|
|| !powerof2 (alignment / sizeof (void *)) != 0
|
||||||
|
|| alignment == 0)
|
||||||
return EINVAL;
|
return EINVAL;
|
||||||
|
|
||||||
/* Call the hook here, so that caller is posix_memalign's caller
|
/* Call the hook here, so that caller is posix_memalign's caller
|
||||||
|
|
Loading…
Reference in a new issue