Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Fix crash on nullary vararg expression function - #13190

Merged
1ec5 merged 1 commit into
masterfrom
1ec5-e8n-vararg-colon-13026
Oct 28, 2018
Merged

1ec5 merged 1 commit into
masterfrom
1ec5-e8n-vararg-colon-13026

Conversation

@1ec5

@1ec5 1ec5 commented Oct 25, 2018

Copy link
Copy Markdown
Contributor

Equate the nullary (FOO(…)) and unary (FOO:(…)) forms of vararg-style aftermarket expression functions such as MGL_FUNCTION when converting them to JSON objects.

Fixes #13026.

/cc @fabian-guerra

@1ec5 1ec5 added iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS crash runtime styling labels Oct 25, 2018
@1ec5 1ec5 added this to the ios-v4.6.0-h-release milestone Oct 25, 2018
@1ec5 1ec5 self-assigned this Oct 25, 2018
@1ec5
1ec5 requested a review from fabian-guerra October 25, 2018 11:34

@fabian-guerra fabian-guerra left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏼

Comment thread platform/ios/CHANGELOG.md Outdated

## master

* Fixed a crash when using the `MGL_LET`, `MGL_MATCH`, `MGL_IF`, or `MGL_FUNCTION` functions without a colon inside an `NSExpression` or `NSPredicate` format string. ([#13189](https://github.com/mapbox/mapbox-gl-native/pull/13189))

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to go in the v4.6.0 section below.

Equate the nullary and unary forms of vararg-style aftermarket expression functions when converting to JSON objects.
@1ec5
1ec5 force-pushed the 1ec5-e8n-vararg-colon-13026 branch from f916818 to 5a3089a Compare October 28, 2018 06:02
@1ec5
1ec5 merged commit 7ae171c into master Oct 28, 2018
@1ec5
1ec5 deleted the 1ec5-e8n-vararg-colon-13026 branch October 28, 2018 06:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

crash iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS runtime styling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants