Bad pointer usage in chanserv OnDelCore()

Bug #1473231 reported by LaMont Jones on 2015-07-09
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
anope (Ubuntu)
Undecided
Unassigned

Bug Description

When nickserv drops a user registration and ChanServCore::OnDelCore is called, the pointer handling is wrong and sometimes results in a SIGSEGV.

The attached patch fixes it.

LaMont Jones (lamont) wrote :
LaMont Jones (lamont) wrote :

The issue only occurs when we have a non-trivial list of channels for which the user is the founder, and there is no specified successor founder. The following reproduces the issue handily:

as non-oper nick lj_test:
/msg nickserv register foobaz <email address hidden>
/join #chan1
/join #chan2
/msg chanserv register #chan1 asdadfa

and then as an oper:
/msg nickserv drop lj_test

With the suggested change, anope stays running, and the nick is fully dropped.

tags: added: patch
Logan Rosen (logan) wrote :

Could you please forward this patch to Anope's upstream bug tracker at https://bugs.anope.org/ so that we can get an upstream perspective? Thanks!

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers