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 crash with iOS 10 #34

Merged
merged 2 commits into from
Sep 26, 2016
Merged

fix crash with iOS 10 #34

merged 2 commits into from
Sep 26, 2016

Conversation

Watson1978
Copy link
Collaborator

This patch should fix https://hipbyte.myjetbrains.com/youtrack/issue/RM-1097

If it would access to same URL with redirection, looks like Cocoa API break the stack or buffer, heap in internal of object which will be used to request since iOS 10.
Then when objective-c runtime API would be called with broken object, it will cause a crash.

This patch will get rid of redirection to same URL.

This patch should fix https://hipbyte.myjetbrains.com/youtrack/issue/RM-1097

If it would access to same URL with redirection, looks like Cocoa API break the stack or buffer, heap in internal of object which will be used to request since iOS 10.
Then when objective-c runtime API would be called with broken object, it will cause a crash.

This patch will get rid of redirection to same URL.
@nathankot
Copy link
Owner

@Watson1978 seeing that you're from HipByte, any idea why the CI is failing? =D Also happy to give you commit access to this repo if you're interested ~

@Watson1978
Copy link
Collaborator Author

I looked a Travis CI log.

$ xcodebuild -version -sdk
...
Xcode 6.1

I did not try with old Xcode 6.

The Travis CI log indicates sudo motion update was invoked.
So, the latest RubyMotion has been tested with Xcode 7.3 or Xcode 8.

@Watson1978
Copy link
Collaborator Author

You can change the Xcode version in Travis with .travis.yml
https://docs.travis-ci.com/user/languages/objective-c/#Supported-Xcode-versions

@Watson1978
Copy link
Collaborator Author

If you give me commit access, I will be happy :)

@nathankot
Copy link
Owner

@Watson1978 granted! I'll add you as a rubygem owner as well, what email should I add?
And thanks for updating the PR with the travis fix :)

@nathankot nathankot merged commit 48748ce into nathankot:master Sep 26, 2016
@Watson1978
Copy link
Collaborator Author

@nathankot Could you add watson1978@gmail.com ? :) Thank you.

@nathankot
Copy link
Owner

@Watson1978 added! feel free to push a new version with the change, thanks =D

@Watson1978
Copy link
Collaborator Author

@nathankot Thank you!! I will try it :)

@Watson1978
Copy link
Collaborator Author

@nathankot I was to able to push new version to RubyGems.org :) Thank you !

@nathankot
Copy link
Owner

@Watson1978 awesome, thanks!

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