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 trailing_comma crash #1032

Merged
merged 1 commit into from
Jan 1, 2017
Merged

Fix trailing_comma crash #1032

merged 1 commit into from
Jan 1, 2017

Conversation

marcelofabri
Copy link
Collaborator

@marcelofabri marcelofabri commented Dec 22, 2016

Fixes #921.

As I wasn't able to reproduce the issue, I'm not sure this actually fixes the problem, but it was the only reason I found to make contents.substringWithByteRange(start: lastPosition, length: length) crash.

I'll add a changelog once we confirm it does fix the issue.

If it does, it'd good to have someone to add a break point in this guard to try to understand the issue and create a reproducible case so we can add tests and make sure we don't introduce a regression in the future.


UPDATE: See #921 (comment)

@marcelofabri marcelofabri changed the title Fix trailing_comma crash? Fix trailing_comma crash Jan 1, 2017
@codecov-io
Copy link

codecov-io commented Jan 1, 2017

Current coverage is 82.52% (diff: 0.00%)

Merging #1032 into master will not change coverage

@@             master      #1032   diff @@
==========================================
  Files           151        151          
  Lines          7209       7209          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
  Hits           5949       5949          
  Misses         1260       1260          
  Partials          0          0          

Powered by Codecov. Last update 6b2338c...1a9d2ef

@marcelofabri marcelofabri merged commit f9a75e5 into realm:master Jan 1, 2017
@marcelofabri marcelofabri deleted the bugfix_921 branch January 1, 2017 18:11
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.

Segmentation fault on trailing_comma with Swift 2.3
3 participants