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

Unconditional recursive call at spyReturningFileResolver.Read #3379

Closed
chavacava opened this issue Oct 24, 2024 · 0 comments · Fixed by #3392
Closed

Unconditional recursive call at spyReturningFileResolver.Read #3379

chavacava opened this issue Oct 24, 2024 · 0 comments · Fixed by #3392
Assignees
Labels
changelog-ignore Don't include this issue in the release changelog

Comments

@chavacava
Copy link
Contributor

The following code will recurse "infinitely"

func (s *spyingIoReadCloser) Read(p []byte) (n int, err error) {
return s.Read(p)
}

Found by revive

@kzantow kzantow self-assigned this Oct 29, 2024
@kzantow kzantow added the changelog-ignore Don't include this issue in the release changelog label Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog-ignore Don't include this issue in the release changelog
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants