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 AbstractDiskHttpData int conversion from long #3210

Conversation

fredericBregier
Copy link
Member

Motivations:
The chunkSize might be oversized after comparison (size being > of int capacity) if file size is bigger than an integer.

Modifications:
Removing the test and changing of chunkSize value, letting it be standard at 8K.

Result:
There is no need to change the chunksize as it has not to be less or equal to the number of bytes available.
There is no more int oversized.

@fredericBregier fredericBregier added this to the 3.9.6.Final milestone Dec 7, 2014
@normanmaurer
Copy link
Member

Motivations:
The chunkSize might be oversized after comparison (size being > of int capacity) if file size is bigger than an integer.

Modifications:
Changing the type to long fix the issue.

Result:
There is no more int oversized.
@fredericBregier fredericBregier force-pushed the 3.9-fix-AbstractDiskHttpData-int-from-long branch from 0f36d8e to 15736ed Compare December 7, 2014 21:43
@normanmaurer
Copy link
Member

@fredericBregier thanks... cherry-picked into 3.9

@normanmaurer normanmaurer self-assigned this Dec 8, 2014
@fredericBregier fredericBregier deleted the 3.9-fix-AbstractDiskHttpData-int-from-long branch December 8, 2014 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants