Procdump crashes when TMPDIR is defined
MarioHewardt opened this issue · comments
Expected behavior
Procdump success.
Actual behavior
ProcDump crashes (invalid free)
Steps to reproduce the behavior
- define TMPDIR env variable (for example: TMPDIR=/tmp
- Run procdump targeting a process (any)
System information (e.g., distro, kernel version, etc.)
All
The code in question is here:
`void InitProcDump()
{
...
...
auto_free char* prefixTmpFolder = NULL;
prefixTmpFolder = getenv("TMPDIR");
`