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

Fix a stack overflow when doing IPAddress.as_json #90

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

Conversation

asomers
Copy link
Contributor

@asomers asomers commented Aug 7, 2017

Add IPAddress::IPv4#as_json and IPAddress::IPv6#as_json. If that method
is not defined, then ActiveSupport will create it automatically, but it
overflows the stack due to the way that ipaddress uses #each.

Fixes #89

Add IPAddress::IPv4#as_json and IPAddress::IPv6#as_json.  If that method
is not defined, then ActiveSupport will create it automatically, but it
overflows the stack due to the way that ipaddress uses #each.

Fixes ipaddress-gem#89
@asomers
Copy link
Contributor Author

asomers commented Sep 15, 2017

Ping. Is this PR ok to merge, or would you like me to take a different approach?

@sandstrom
Copy link
Collaborator

I'm trying to get this in. Can you rebase on master?

@asomers
Copy link
Contributor Author

asomers commented Mar 19, 2023

Sorry, but I can't. I haven't used this gem, or indeed any Ruby code, for a long time.

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.

Stack overflow doing IPAddress#as_json
2 participants