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

Fix procdump on Windows #1560

Merged
merged 1 commit into from
Jan 17, 2024
Merged

Fix procdump on Windows #1560

merged 1 commit into from
Jan 17, 2024

Conversation

rkervella
Copy link
Member

Fix #1558

We were using a global variable (bytesRead) to track how many bytes were read by the minidump callback, but the same variable was used to allocate the output buffer. This was not go-routine safe, and the variable was never reset to 0, meaning consecutive or concurrent calls to procdump could cause a crash in the implant.

This fix removes this global variable and instead passes the information through the callback parameter structure.

@rkervella rkervella requested a review from a team as a code owner January 17, 2024 17:26
@rkervella rkervella merged commit 49a095d into master Jan 17, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

procdump crashes inconsistently
2 participants