Skip to content

Conversation

Xadeck
Copy link

@Xadeck Xadeck commented Dec 18, 2019

Before this change, if you use cmark concurrently, you could run into concurrent access because the SPECIAL_CHARS table was globally shared with potential read and write.

This change stores the table per cmark_parser instance and solves the problem.

This bug was found at Google using thread sanitizer

@saraedum
Copy link

Is there anything that needs to be done here to get this change included into cmark-gfm?

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