Message ID | alpine.DEB.2.20.1802012037120.13065@digraph.polyomino.org.uk |
---|---|
State | New |
Headers | show |
Series | Use xmalloc in tst-setcontext-fpscr.c (bug 19668) | expand |
Ping. This patch <https://sourceware.org/ml/libc-alpha/2018-02/msg00036.html> is pending review.
On 02/01/2018 09:37 PM, Joseph Myers wrote: > - auxv = (ElfW(auxv_t) *)malloc(getpagesize()); > + auxv = (ElfW(auxv_t) *) xmalloc (getpagesize ()); This is okay, but you might as well drop the cast. Thanks, Florian
On Tue, 6 Feb 2018, Florian Weimer wrote: > On 02/01/2018 09:37 PM, Joseph Myers wrote: > > - auxv = (ElfW(auxv_t) *)malloc(getpagesize()); > > + auxv = (ElfW(auxv_t) *) xmalloc (getpagesize ()); > > This is okay, but you might as well drop the cast. Done.
diff --git a/sysdeps/powerpc/fpu/tst-setcontext-fpscr.c b/sysdeps/powerpc/fpu/tst-setcontext-fpscr.c index c64ca88..f39f1c4 100644 --- a/sysdeps/powerpc/fpu/tst-setcontext-fpscr.c +++ b/sysdeps/powerpc/fpu/tst-setcontext-fpscr.c @@ -23,11 +23,11 @@ #include <string.h> #include <ucontext.h> #include <unistd.h> -#include <malloc.h> #include <link.h> #include <elf.h> #include <fpu_control.h> #include <sys/auxv.h> +#include <support/support.h> static ucontext_t ctx[3]; @@ -59,7 +59,7 @@ ElfW(Addr) query_auxv(int type) perror("Error opening file for reading"); return 0; } - auxv = (ElfW(auxv_t) *)malloc(getpagesize()); + auxv = (ElfW(auxv_t) *) xmalloc (getpagesize ()); do {