This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
Crash when parsing invalid sprite URL - #5723
Merged
Merged
Conversation
|
@kkaefer, thanks for your PR! By analyzing the annotation information on this pull request, we identified @lucaswoj, @tmcw and @jfirebaugh to be potential reviewers |
Contributor
|
We’d like to pull this into iOS SDK v3.3.1. That may require #5554, which is in a similar vein. |
Closed
Member
Author
|
Ran afl-fuzz on this and couldn't produce any crashes with this path applied. |
Contributor
|
FYI.. this is also going to affect Android too. |
| std::vector<std::string> pathname; | ||
| std::size_t startIndex = protocol.length(); | ||
| std::size_t end = url.find_first_of("?#"); | ||
| auto startIndex = protocol.length(); |
Contributor
There was a problem hiding this comment.
FWIW, I prefer to use explicit types for normal local variables, rather than seeing auto and then needing to mentally work out what the type must be.
Contributor
|
Addresses #5722 |
Contributor
|
Updated the iOS and macOS changelogs in a53dfcd. |
Contributor
Contributor
|
Just clarifying that it's actually Android SDK v4.1.1. |
Contributor
|
The fix is now in macOS SDK v0.2.1 as well. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When a style contains a sprite URL that is invalid, Mapbox GL Native crashes when the filename of the sprite URL does not contain a file extension.