Skip to content
Snippets Groups Projects

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

Closed Hank Anderson requested to merge Sumou/VLCKit:3.0-dangling-pointer-access-fix into 3.0

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 by Hank Anderson

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading