Re: [hackers] [sbase][patch]find: copy path before using basename

From: Laslo Hunhold <dev_AT_frign.de>
Date: Tue, 27 Dec 2016 12:46:47 +0100

On Wed, 5 Oct 2016 15:41:55 -0700
Evan Gates <evan.gates_AT_gmail.com> wrote:

Hey Evan,

> On Mon, Oct 3, 2016 at 3:10 PM, FRIGN <dev_AT_frign.de> wrote:
> > Please don't use VLA's. Use estrdup() in this case.
>
> sbase-find_basename2.diff: revised patch without VLAs
> sbase-find_noVLAs.diff: path to remove all VLAs in find

thanks, applied with a few style modifications and using ereallocarray
() for overflow safety.

Cheers

Laslo

-- 
Laslo Hunhold <dev_AT_frign.de>
Received on Tue Dec 27 2016 - 12:46:47 CET

This archive was generated by hypermail 2.3.0 : Tue Dec 27 2016 - 15:14:53 CET