about summary refs log tree commit diff
path: root/ChangeLog
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2018-02-06 21:32:53 +0000
committerJoseph Myers <joseph@codesourcery.com>2018-02-06 21:32:53 +0000
commit02325d6c3a3eb415556782a7d2cfff589d29493d (patch)
tree77f7d6f36bcd2a9c6484f81029baf1a8301cf9ea /ChangeLog
parent663e7d784977f6b15c0cab73f754f9f39c9c0c2c (diff)
downloadglibc-02325d6c3a3eb415556782a7d2cfff589d29493d.tar.gz
glibc-02325d6c3a3eb415556782a7d2cfff589d29493d.tar.xz
glibc-02325d6c3a3eb415556782a7d2cfff589d29493d.zip
Use xmalloc in tst-setcontext-fpscr.c (bug 19668).
Bug 19668 reports an unchecked malloc call in the test
sysdeps/powerpc/fpu/tst-setcontext-fpscr.c.  This patch makes that
test use xmalloc.  It does not otherwise move this test to the
support/ infrastructure or support/test-driver.c; the test has various
uses of exit and _exit on error cases, and uses atexit, and while I
think those things would all still work in the context of
test-driver.c, it's not an immediately obvious conversion the way it
would be for many tests that don't use test-driver.c.

Tested for powerpc.

	[BZ #19668]
	* sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
	<support/support.h>.  Do not include <malloc.h>.
	(query_auxv): Use xmalloc instead of malloc.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog5
1 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index c9734c46b6..ca14746ce6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2018-02-06  Joseph Myers  <joseph@codesourcery.com>
 
+	[BZ #19668]
+	* sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
+	<support/support.h>.  Do not include <malloc.h>.
+	(query_auxv): Use xmalloc instead of malloc.
+
 	[BZ #14553]
 	* posix/sys/types.h (loff_t): Only define for [__USE_MISC].
 	* sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t