Re: [PATCH] Check for existence of asprintf and vasprintf

2017-02-24 Thread Ulf Hermann
and the GNU variant is a whopping two lines of code: char *base = strrchr(path, '/'); return base ? base + 1 : (char *)path; and we get straight to an example of why your solutions don't scale. your replacement is wrong. and ironically, it's wrong on Windows, which is the whole point of your

[Bug libelf/21199] New: elf_update might "fill" over existing section data

2017-02-24 Thread mark at klomp dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=21199 Bug ID: 21199 Summary: elf_update might "fill" over existing section data Product: elfutils Version: unspecified Status: NEW Severity: normal Priority: P2 Com

Re: [PATCH] Check for existence of asprintf and vasprintf

2017-02-24 Thread Mike Frysinger
On 24 Feb 2017 10:42, Ulf Hermann wrote: > >> and the GNU variant is a whopping two lines of code: > >> > >> char *base = strrchr(path, '/'); > >> return base ? base + 1 : (char *)path; > > > > and we get straight to an example of why your solutions don't scale. > > your replacement is wrong. and