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

fixed potential overflow in wellknown handler #59

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

Conversation

mopsiok
Copy link

@mopsiok mopsiok commented Feb 28, 2023

Prior to this change, /.well-known/core resource was prone to buffer overflow depending on the configuration.

Safe append functions were introduced to construct the result value in proper way. isBufferOk was added for an early exit in case of the buffer is full, but it was introduced for performance only and is not needed for safe operation.

The solution was tested using an existing project to make sure that it doesn't change the result.

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.

1 participant