This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
Testcase replication for invalid array access in collection.update - #15531
Closed
springmeyer wants to merge 1 commit into
Closed
springmeyer wants to merge 1 commit into
springmeyer wants to merge 1 commit into
Conversation
Contributor
Author
|
One open question: does this crash have anything to do with using a I pulled that usage from mapbox-gl-native/bin/render.cpp Line 81 in 2984535 /cc @kkaefer @tmpsantos |
1 task done
Member
No; the |
Contributor
Author
|
closing, this testcase landed in #15548 |
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.
This is a testcase that replicates the problem in #15514.
When run inside gtest on Mac OS (with master at 2984535):
I get:
Which replicates the root problem described at #15514.
Rather than an
std::out_of_rangeerror being thrown I would expect the call tomap.getStyle().loadJSONto succeed (Although in this case I'm using existing test fixtures, so there may be a different, valid error that is thrown by this test once the underlyingstd::out_of_rangebug is fixed and until this test is improved).