Sysinternals / ProcDump-for-Linux

A Linux version of the ProcDump Sysinternals tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

  1. define TMPDIR env variable (for example: TMPDIR=/tmp
  2. 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");

`