Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • VLCKit VLCKit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare
  • Issues 114
    • Issues 114
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VideoLANVideoLAN
  • VLCKitVLCKit
  • Merge requests
  • !205

Draft: WIP: [3.0] prevent access to dangling pointers when handling libvlc_event

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Hank Anderson requested to merge Sumou/VLCKit:3.0-dangling-pointer-access-fix into 3.0 Jul 02, 2022
  • Overview 0
  • Commits 6
  • Pipelines 14
  • Changes 9

prevent access to dangling pointers when handling libvlc_event

Currently libvlc_event_detach() is done with -(void)dealloc, and since the instance is released at that point, the timing to calllibvlc_event_detach ()is late. Therefore, it is possible that libvlc_event_detach() will not be in time and will send libvlc_callback to the object that has already been released. This is an attempt to call libvlc_event_detach() before -(void)dealloc to prevent it.

Edited Jul 04, 2022 by Hank Anderson
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: 3.0-dangling-pointer-access-fix

VideoLAN code repository instance