Re: [PATCH] avoid relying on getcwd extensions (PR 80047)

2017-03-21 Thread Jeff Law
On 03/15/2017 02:29 PM, Martin Sebor wrote: PR 80047 - fixincludes/fixincl.c: PVS-Studio: Improper Release of Memory Before Removing Last Reference (CWE-401) points out that the fixincludes program calls getcwd with the first argument set to NULL, apparently a Glibc extension, to have the

[PATCH] avoid relying on getcwd extensions (PR 80047)

2017-03-15 Thread Martin Sebor
PR 80047 - fixincludes/fixincl.c: PVS-Studio: Improper Release of Memory Before Removing Last Reference (CWE-401) points out that the fixincludes program calls getcwd with the first argument set to NULL, apparently a Glibc extension, to have the function allocate the memory to which it then