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

[skrifa] color: add traversal depth limit #841

Merged
merged 1 commit into from
Mar 15, 2024
Merged

[skrifa] color: add traversal depth limit #841

merged 1 commit into from
Mar 15, 2024

Conversation

dfrg
Copy link
Member

@dfrg dfrg commented Mar 15, 2024

Adds a maximum recursion depth for COLRv1 paint graphs. The limit chosen is 64 which matches the one used in HarfBuzz.

This makes skrifa more robust to potential stack overflow attacks and will enable no_std support without taking a hashbrown dependency for the visited set.

Adds a maximum recursion depth for COLRv1 paint graphs. The limit chosen is 64 which matches the one used in HarfBuzz.

This makes skrifa more robust to potential stack overflow attacks and will enable no_std support without taking a hashbrown dependency for the visited set.
@dfrg dfrg merged commit b95258b into main Mar 15, 2024
9 checks passed
@dfrg dfrg deleted the colrv1-depth-limit branch March 15, 2024 19:45
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