summary refs log tree commit diff
path: root/ChangeLog
diff options
context:
space:
mode:
authorArjun Shankar <arjun.is@lostca.se>2017-05-29 16:12:31 +0200
committerArjun Shankar <arjun.is@lostca.se>2017-06-07 17:37:59 +0200
commit8f0a947cf55f3b0c4ebdf06953c57eff67a22fa9 (patch)
treeac419833fa9448098b94cf678db893520c6f5837 /ChangeLog
parentfdc543919a3d8578631a492e1227c2cd8f5ecec7 (diff)
downloadglibc-8f0a947cf55f3b0c4ebdf06953c57eff67a22fa9.tar.gz
glibc-8f0a947cf55f3b0c4ebdf06953c57eff67a22fa9.tar.xz
glibc-8f0a947cf55f3b0c4ebdf06953c57eff67a22fa9.zip
Remove check for NULL buffer passed to `ptsname_r'
`ptsname_r' is declared in stdlib.h to only accept a `nonnull'
second argument and therefore GCC may choose to make optimizations
based on the assumption that this argument is NULL. This means
that potentially, GCC can optimize away the NULL check at some
point in the future. Since this is a programming interface, we
might as well remove the NULL check ourselves.

This also warrants a change to the `ptsname_r' manual page that
must be submitted to the corresponding mailing list.

In addition, remove the NULL buffer test in login/tst-ptsname.c.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog6
1 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index f74004b39a..4c06d7ef85 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2017-06-07  Arjun Shankar  <arjun.is@lostca.se>
 
+	* sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal):
+	Remove check for NULL 'buf'.
+	* login/tst-ptsname.c (do_test): Remove test with NULL 'buf'.
+
+2017-06-07  Arjun Shankar  <arjun.is@lostca.se>
+
 	* sysdeps/unix/sysv/linux/tst-clone2.c: Do not
 	include test-skeleton.c.
 	Include support/check.h and support/test-driver.c.