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 byte index out of range panic for likely error responses. #713

Merged
merged 1 commit into from
Mar 9, 2022

Conversation

shawnbuso
Copy link
Collaborator

No description provided.

@shawnbuso shawnbuso force-pushed the imglen branch 2 times, most recently from 07a435b to c9c6bd9 Compare March 9, 2022 19:12
@shawnbuso shawnbuso changed the title Fix byte index out of range error for absurdly small images. Fix byte index out of range panic for likely error responses. Mar 9, 2022
Copy link
Contributor

@DragonRider0o0 DragonRider0o0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider printing the bytes, they might contain a brief error message.

@shawnbuso shawnbuso merged commit 85498c4 into googlecodelabs:main Mar 9, 2022
@shawnbuso shawnbuso deleted the imglen branch March 9, 2022 22:36
@@ -4,6 +4,7 @@ go 1.16

require (
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tấc cả ngôn ngữ

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