about summary refs log tree commit diff
path: root/ChangeLog
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2018-07-06 14:23:15 +0200
committerFlorian Weimer <fweimer@redhat.com>2018-07-06 17:52:54 +0200
commit916124ed841745b7a1e0fbc43f9909340b47d373 (patch)
treec523c3829788b33588fdbc1953d889e8fa258ee7 /ChangeLog
parent3f5e3f5d066dcffb80af48ae2cf35a01a85a8f10 (diff)
downloadglibc-916124ed841745b7a1e0fbc43f9909340b47d373.tar.gz
glibc-916124ed841745b7a1e0fbc43f9909340b47d373.tar.xz
glibc-916124ed841745b7a1e0fbc43f9909340b47d373.zip
nss_files: Fix re-reading of long lines [BZ #18991]
Use the new __libc_readline_unlocked function to pick up
reading at the same line in case the buffer needs to be enlarged.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog11
1 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 51e6bdcefc..7a052c344a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,16 @@
 2018-07-06  Florian Weimer  <fweimer@redhat.com>
 
+	[BZ #18991]
+	* nss/nss_files/files-XXX.c (internal_getent): Use
+	__libc_readline_unlocked.  Seek back to the start of the line if
+	parsing failes with ERANGE.
+	(get_contents_ret, get_contents): Remove.
+	* nss/tst-nss-files-hosts-getent.c: New file.
+	* nss/Makefile (tests): Add tst-nss-files-hosts-getent.
+	(tst-nss-files-hosts-getent): Link with -ldl.
+
+2018-07-06  Florian Weimer  <fweimer@redhat.com>
+
 	* include/stdio.h (__libc_readline_unlocked): Declare.
 	(__ftello64, __fseeko64): Declare aliases.
 	* libio/readline.c: New file.