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

Clone router map before returning it to user #497

Merged
merged 3 commits into from
Oct 26, 2023

Conversation

HRogge
Copy link
Collaborator

@HRogge HRogge commented Oct 18, 2023

mux/Router.GetRoutes() leaks access to the (lock-protected) internal map of the router. Clone the map before returning it to the user.

mux/router.go Outdated Show resolved Hide resolved
@jkralik jkralik merged commit a48812e into plgd-dev:master Oct 26, 2023
10 checks passed
@jkralik
Copy link
Member

jkralik commented Oct 26, 2023

Thx for contribution :).

@HRogge HRogge deleted the fix-mux-getroutes branch October 26, 2023 11:30
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.

3 participants