Project

General

Profile

Actions

Bug #8473

open
AK AK

BypassManager checks registration of BypassedCheckFuncInit instead of BypassedCheckFunc

Bug #8473: BypassManager checks registration of BypassedCheckFuncInit instead of BypassedCheckFunc

Added by Adam Kiripolsky 29 days ago. Updated 17 days ago.

Status:
New
Priority:
Normal
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

At the initialization stage, BypassManager should check whether any BypassedCheckFunc has been registered.
Instead, BM calls BypassedCheckFuncInit, then checks again whether it has been registered.

I propose checking whether any BypassedCheckFunc has been registered, rather than BypassedCheckFuncInit.


Subtasks 2 (1 open1 closed)

Bug #8474: BypassManager checks registration of BypassedCheckFuncInit instead of BypassedCheckFunc (8.0.x backport)AssignedAdam KiripolskyActions
Bug #8475: BypassManager checks registration of BypassedCheckFuncInit instead of BypassedCheckFunc (7.0.x backport)RejectedActions

OT Updated by OISF Ticketbot 29 days ago Actions #1

  • Subtask #8474 added

OT Updated by OISF Ticketbot 29 days ago Actions #2

  • Label deleted (Needs backport to 8.0)

OT Updated by OISF Ticketbot 29 days ago Actions #3

  • Subtask #8475 added

OT Updated by OISF Ticketbot 29 days ago Actions #4

  • Label deleted (Needs backport to 7.0)

PA Updated by Philippe Antoine 22 days ago Actions #5

Is this rather an optimization than a bug ?
Does it deserve a backport to 7 ?

AK Updated by Adam Kiripolsky 21 days ago Actions #6

In my opinion, it is a bug, as the original behavior does not make sense (using the BypassedCheckFuncInit function and checking only after that whether it exists).

PA Updated by Philippe Antoine 20 days ago Actions #7

Adam Kiripolsky wrote in #note-6:

In my opinion, it is a bug, as the original behavior does not make sense (using the BypassedCheckFuncInit function and checking only after that whether it exists).

So, can we get a call of a NULL-pointer callback in the current situation ? How can this happen ?

I see something that looks correct in the current code

        if (bypassedfunclist[i].FuncInit) {
            bypassedfunclist[i].FuncInit(th_v, &curtime, bypassedfunclist[i].data);
        }

Actions

Also available in: PDF Atom