Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-restrack calloc and reallocarray sizes are incorrect #245

Closed
MarioHewardt opened this issue May 3, 2024 · 1 comment
Closed

-restrack calloc and reallocarray sizes are incorrect #245

MarioHewardt opened this issue May 3, 2024 · 1 comment
Assignees
Labels

Comments

@MarioHewardt
Copy link
Collaborator

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

@MarioHewardt
Copy link
Collaborator Author

This has now been fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant