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/xml mutexes #4443

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

whoismissing
Copy link

In the call tree of openDocument() -> parseDocument() -> xml_tree() -> xml_parse(), the global variables global_scan and handler are set.

When openDocument() is used in a multithreaded environment, both variables are modified without a thread locking mechanism.

This was discovered while implementing bindings to the sleigh library and is a reproducible SIGSEGV as tracked by angr/pypcode#30

The fixes in this PR are ported from sleighcraft.

@whoismissing whoismissing deleted the fix/xml-mutexes branch July 14, 2022 12:00
@whoismissing whoismissing restored the fix/xml-mutexes branch July 14, 2022 12:01
@whoismissing whoismissing reopened this Jul 14, 2022
@whoismissing whoismissing changed the base branch from patch to master July 14, 2022 12:01
@ryanmkurtz ryanmkurtz added Feature: Decompiler Status: Triage Information is being gathered labels Jul 14, 2022
@jobermayr
Copy link
Contributor

Duplicate of #2969

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature: Decompiler Status: Triage Information is being gathered
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants