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

#26 Crash fix when SMB device suddenly doesn't respond" #27

Merged
merged 3 commits into from
Jul 27, 2016

Conversation

natalia-osa
Copy link
Contributor

@natalia-osa natalia-osa commented Jul 27, 2016

Fixes #26 .

The crash responsible line was TOSMBClient/TOSMBSessionDownloadTask.m L:476. Because there was unsigned integer it took wrong value from smb_fread when the error occured (it returns -1 then). Now it's signed, we're checking if that's -1 and if so, we're breaking further communication and failing whole download (the file would be malformed anyway). I also made a small refactor and divided the controller into pragma marks, so it is easier to read.

@TimOliver TimOliver merged commit 50f1734 into TimOliver:master Jul 27, 2016
@TimOliver
Copy link
Owner

Nicely found! Thanks for that! :)

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