Project

General

Profile

Bug #5179

gprs_ns2: use refcounting for the NSE

Added by lynxis about 1 month ago. Updated about 1 month ago.

Status:
New
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
06/13/2021
Due date:
% Done:

0%

Spec Reference:

Description

A NSE could be freed by the application on multiple events.
However there are certain cases when multiple events are emitted which will result in a use-after-free when called in the wrong order.

History

#1 Updated by lynxis about 1 month ago

Unsure if it needs the usage of use_count.
At least recursions of free_nsvcs(), free_nsvc() and free_nse() must be prevented.

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)