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 crash when CloseApplications_X64 closes Electron app #488

Merged
merged 1 commit into from
Jan 22, 2024
Merged

Fix crash when CloseApplications_X64 closes Electron app #488

merged 1 commit into from
Jan 22, 2024

Conversation

avjts
Copy link
Contributor

@avjts avjts commented Jan 20, 2024

CloseApplications custom action may crash on 64-bit systems if the number of processes to close exceeds the default memory alignment for a platform. E.g. on AMD64 seven processes is enough to trigger the problem, while on ARM64 it has to be more.

I encountered the above problem trying to close an Electron application. Electron apps have at least 6 child processes of the very same name as the master process. It causes a buffer overflow in ProcWaitForIds function.

Copy link

github-actions bot commented Jan 20, 2024

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@avjts
Copy link
Contributor Author

avjts commented Jan 20, 2024

I have read the CLA Document and I hereby sign the CLA

wixbot added a commit to wixtoolset/.github that referenced this pull request Jan 20, 2024
@barnson barnson merged commit bf1e74b into wixtoolset:develop Jan 22, 2024
3 checks passed
@barnson
Copy link
Member

barnson commented Jan 22, 2024

Thanks!

@github-actions github-actions bot locked and limited conversation to collaborators Jan 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants