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

Infinite recursion with %#v formatter #3

Open
Wessie opened this issue Jun 19, 2014 · 0 comments
Open

Infinite recursion with %#v formatter #3

Wessie opened this issue Jun 19, 2014 · 0 comments

Comments

@Wessie
Copy link

Wessie commented Jun 19, 2014

Giving any of the fmt.*f functions a xmlpath.Node will result in an infinite recursion and an eventual stack overflow. This happens due to Node.nodes containing non-pointers and the recursive referencing with the nodes in it.

non-xmlpath reproduce
xmlpath reproduce

While the fmt package is the one at fault for not handling recursion. xmlpath might want to implement a GoString to avoid the stack overflow for users.

Reported it as a Go issue too as issue 8241. This mostly to get a fmt documentation update.

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

No branches or pull requests

1 participant