Opened 8 years ago

Closed 8 years ago

#1310 closed defect (fixed)

Possible crash in registration callback after deleting account and restarting pjsua

Reported by: nanang Owned by: bennylp
Priority: normal Milestone: release-1.12
Component: pjsua-lib Version: 1.x-branch
Keywords: Cc: Alejandro Orellana
Backport to 1.x milestone: Backported:

Description

Validation of account registration object in the registration callback is not protected by pjsua lock. This may cause race condition that lead to crash.

Detail scenario:

  1. when entering registration callback, the account registration object validation passes and about to get pjsua lock
  2. context switch, application deletes the account, pjsua_acc_del(), until the deleting account finished,
  3. context switch back to registration callback, from this point, any access to the just deleted account will lead to crash!

Change History (1)

comment:1 Changed 8 years ago by nanang

  • Resolution set to fixed
  • Status changed from new to closed

In r3591: protected the account validation in the registration callback.

Note: See TracTickets for help on using tickets.