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 locking region in sjlit_malloc_exec #244

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

lbonn
Copy link
Contributor

@lbonn lbonn commented Apr 2, 2024

The locked section needs to extend until we are done modifying internal block offsets and sizes, otherwise we risk running into data corruption in a multi-threaded context.

This bug was introduced in 7de0fee

See: PCRE2Project/pcre2#402

The locked section needs to extend until we are done modifying internal
block offsets and sizes, otherwise we risk running into data corruption
in a multi-threaded context.

This bug was introduced in 7de0fee

See: PCRE2Project/pcre2#402
Copy link
Owner

@zherczeg zherczeg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zherczeg zherczeg merged commit ad89dd8 into zherczeg:master Apr 2, 2024
@zherczeg
Copy link
Owner

zherczeg commented Apr 2, 2024

Thank you!

@lbonn lbonn deleted the allocator-locking branch April 2, 2024 11:06
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.

2 participants