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

bug: invalid use of copy #60

Closed
tzdybal opened this issue Feb 19, 2025 · 1 comment · Fixed by #62
Closed

bug: invalid use of copy #60

tzdybal opened this issue Feb 19, 2025 · 1 comment · Fixed by #62
Assignees
Labels
bug Something isn't working released

Comments

@tzdybal
Copy link
Member

tzdybal commented Feb 19, 2025

In many places copy is used with nil used as destination. Because of user-friendliness of copy, this is not causing a panic (min(len(dst), len(src)) bytes are copied, and len(nil) is `0)).

Because invalid operation is used in both tests and implementation, errors were hidden.

Additionally, return value of copy is ignored.

@tzdybal tzdybal added the bug Something isn't working label Feb 19, 2025
@tzdybal tzdybal self-assigned this Feb 19, 2025
@github-project-automation github-project-automation bot moved this to Done in Rollkit Feb 20, 2025
Copy link

🎉 This issue has been resolved in version 0.2.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant