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

[chore] - correctly handle input shorter than 512 bytes #2077

Merged
merged 6 commits into from
Oct 31, 2023

Conversation

ahrav
Copy link
Collaborator

@ahrav ahrav commented Oct 31, 2023

Description:

Check for EOF error as well as err != nil so that input shorter than 512 bytes is also correctly processed.

Checklist:

  • Tests passing (make test-community)?
  • Lint passing (make lint this requires golangci-lint)?

"github.com/stretchr/testify/assert"
diskbufferreader "github.com/trufflesecurity/disk-buffer-reader"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Note: not sure how/why this got updated, but i'm going to leave it since its just a import reorder.

@ahrav ahrav marked this pull request as ready for review October 31, 2023 18:23
@ahrav ahrav requested review from a team as code owners October 31, 2023 18:23
pkg/handlers/archive.go Outdated Show resolved Hide resolved
@ahrav ahrav merged commit 95e0090 into main Oct 31, 2023
8 checks passed
@ahrav ahrav deleted the chore-fix-mime-type-error branch October 31, 2023 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants