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

Prevent potential size overflow and 0 length PATCH #556

Closed
wants to merge 2 commits into from
Closed

Conversation

mifi
Copy link
Collaborator

@mifi mifi commented Feb 23, 2023

note: i'm not sure how to reproduce or even test this. and i'm not even sure if this is the correct solution, but I saw some code that I thought could be buggy.

alternatively we could throw an error if sliceSize < 0 or offset > this._size, because that could indicate a logic issue.

see discussion in https://community.transloadit.com/t/how-to-abort-hanging-companion-uploads/16488/10

@Acconut
Copy link
Member

Acconut commented Mar 7, 2023

Tests are failing for your changes, which could indicate a problem. Also, in https://community.transloadit.com/t/how-to-abort-hanging-companion-uploads/16488/13 they mentioned that this behavior would occur when uploadSize was too big, so we should focus on fixing this.

cc @jdcalvin

@Acconut
Copy link
Member

Acconut commented Aug 2, 2023

Superseeded by #606.

@Acconut Acconut closed this Aug 2, 2023
@Acconut Acconut deleted the fix-overflow branch August 2, 2023 06:43
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.

2 participants