This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] ld.so: Reject overly long LD_PRELOAD path elements
- From: Florian Weimer <fweimer at redhat dot com>
- To: Andreas Schwab <schwab at linux-m68k dot org>
- Cc: libc-alpha at sourceware dot org
- Date: Mon, 19 Jun 2017 22:25:52 +0200
- Subject: Re: [PATCH] ld.so: Reject overly long LD_PRELOAD path elements
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx01.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx01.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=fweimer at redhat dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 497EE7F3F5
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 497EE7F3F5
- References: <20170619161325.D0219402AEC3E@oldenburg.str.redhat.com> <87bmpknds3.fsf@linux-m68k.org>
On 06/19/2017 06:27 PM, Andreas Schwab wrote:
>> + /* Skip over the substring and the following delimiter. */
>> + p += len;
>> + if (*p == ' ' || *p == ':')
> If you use *p != '\0' you don't have to repeat the list of delimiters.
Thanks, applied.
Florian