This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] nss_files: Fix re-reading of long lines [BZ #18991]
- From: DJ Delorie <dj at redhat dot com>
- To: Florian Weimer <fweimer at redhat dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Mon, 11 Sep 2017 15:59:24 -0400
- Subject: Re: [PATCH] nss_files: Fix re-reading of long lines [BZ #18991]
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx05.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=dj at redhat dot com
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 16300110E
Florian Weimer <fweimer@redhat.com> writes:
> I think I found a way to salvage this approach. If parse_line fails
> with ERANGE, we need to seek back to the start of the line. We can do
> this because we know the exact length of the line in bytes at this point.
LGTM