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: ensure that there is room for length header in byte array #18

Closed
wants to merge 1 commit into from

Conversation

IanKrieger
Copy link

write_all does not appear to give us the extra bytes we need in order to handle the length header.

Extend the vector instead, and use copy_from_slice as it avoids the overhead of creating an iterator and cloning the bytes.

@IanKrieger IanKrieger requested review from tackley and tsmartt January 26, 2024 17:33
@IanKrieger
Copy link
Author

I think the issue lies in this PR: https://github.com/brave/ads-image-upload/pull/11/files

@IanKrieger IanKrieger closed this Jan 26, 2024
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.

1 participant