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

Fixed crash in (nextChunk) method #582

Merged
merged 2 commits into from
Feb 16, 2017
Merged

Conversation

nahashsvb
Copy link
Contributor

If no data is read crash observed at
“[NSData dataWithBytesNoCopy:chunkBuffer length:read];” line.
screen shot 2017-02-07 at 16 07 58

Data length can’t be negative. So I propose return NO If no data is read. It prevents crash.

If no data is read crash observed at
“[NSData dataWithBytesNoCopy:chunkBuffer length:read];” string.

Data length can’t be negative.
@nahashsvb nahashsvb changed the title [*] fixed crash in (nextChunk) method Fixed crash in (nextChunk) method Feb 7, 2017
@minbi minbi added the bug Something isn't working label Feb 15, 2017
@minbi minbi merged commit 6c5860d into aws-amplify:master Feb 16, 2017
alexander-lsvk pushed a commit to Rooftoptek/aws-sdk-ios that referenced this pull request Feb 22, 2017
* 'master' of https://github.com/aws/aws-sdk-ios:
  Fixed crash in (nextChunk) method (aws-amplify#582)
  Update CHANGELOG.md
  The AWS Mobile SDK for iOS 2.5.1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants