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

-[MGLStyle removeLayer:] relies on undefined behavior #7211

Closed

Description

@1ec5

Per #6097 (comment), the -removeFromMapView: method in each of the concrete MGLStyleLayer subclasses relies on undefined behavior by reinterpret_casting a unique_ptr to the mbgl::style::Layer. This code was added to the iOS and macOS SDKs in #7048. The Android SDK is doing something a bit different in #7039: move-ing a unique_ptr but not reinterpret_casting it.

/cc @jfirebaugh @boundsj

Activity

  1. added
    iOS
    macOS
    on Nov 28, 2016
  2. added this to the ios-v3.4.0 milestone on Nov 28, 2016
  3. self-assigned this
    on Nov 29, 2016
  4. boundsj commented on Nov 30, 2016

    @boundsj
    Contributor

    This was fixed by #7227

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugiOSmacOSruntime styling

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions