Skip to content

fixed potential overflow in wellknown handler - #59

Open
mopsiok wants to merge 1 commit into
lobaro:masterfrom
mopsiok:fix/potential-wellknown-overflow
Open

fixed potential overflow in wellknown handler#59
mopsiok wants to merge 1 commit into
lobaro:masterfrom
mopsiok:fix/potential-wellknown-overflow

Conversation

@mopsiok

@mopsiok mopsiok commented Feb 28, 2023

Copy link
Copy Markdown

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