Sysinternals / ProcDump-for-Linux

A Linux version of the ProcDump Sysinternals tool
MIT License
2.91k stars 302 forks source link

-restrack calloc and reallocarray sizes are incorrect #245

Open MarioHewardt opened 2 months ago

MarioHewardt commented 2 months ago

Expected behavior

For calloc and reallocarray the allocation size should be nmemb*size

Actual behavior

Currently the size is size

Steps to reproduce the behavior

  1. Run procdump with -restrack against a process that uses calloc

The resulting leak track report only reports size rather than nmemb*size

System information (e.g., distro, kernel version, etc.)

All