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

Changing intValue to longLongValue #1836

Merged

Conversation

benmckillop
Copy link
Contributor

I was having an issue that if the file being uploaded is bigger than 2323693218 bytes, then the intValue call results in an overflow and the comparison fails. The change to longLongValue prevents the overflow.

Description of changes:
Changed the length of bytes sent so far in a multipart task to be of type longLongValue rather than intValue that it was previously

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@benmckillop benmckillop changed the base branch from master to develop September 4, 2019 10:54
@royjit royjit added Pull Request s3 Issues related to S3 labels Sep 4, 2019
@royjit royjit self-requested a review September 6, 2019 21:38
@royjit royjit merged commit 6a06505 into aws-amplify:develop Sep 6, 2019
@royjit
Copy link
Contributor

royjit commented Sep 6, 2019

Thank you @benmckillop for the PR, this is merged to develop branch. Should be available in the next release of the SDK.

@lawmicha
Copy link
Member

lawmicha commented Sep 7, 2019

Interesting! Looks like this is only for progress reporting in the multipart upload flow. What about upload and download? I think if you now try to download the large file, it should fail with the same error right?

@palpatim
Copy link
Member

palpatim added a commit that referenced this pull request Sep 18, 2019
* develop:
  [email] Update models to latest (#1857)
  [ec2] Update models to latest (#1856)
  [bump version 2.11.0] (#1849)
  Updated the CHANGELOG file (#1848)
  Add CHANGELOG entry for S3 progress reporting fix (#1826)
  Project file cleanup (#1839)
  [transcribe] Update models to latest (#1846)
  Updated AWSMobileClient to access the new header as public (#1843)
  Fixed boolean casting in AWSCognito (#1844)
  Changing intValue to longLongValue in AWSTransferUtility (#1836)
  Downgraded swift version for unittest (#1841)
  Added Cancellation token to cancel on going credential fetch (#1840)
  Initialize in-memory 'internalCredentials' from keychain (#1678)
  add support for in-memory configuration to address #1649 (#1812)
  [sqs] Update models to latest (#1832)
  [lambda] Update models to latest (#1831)
  Removed deprecated methods (#1738)
  AWSMobile Client fixes - Balance semaphore's wait and signal calls. (#1824)
  Moved user state listener before completion handler call (#1822)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s3 Issues related to S3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants