[OpenSIPS-Devel] [OpenSIPS/opensips] 279b21: [call_center] fix overflowing the per-agent array ...

Bogdan Andrei IANCU noreply at github.com
Thu May 4 10:32:49 UTC 2023


  Branch: refs/heads/3.1
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 279b2114ad3b227f1e7534e256e2833fed98688a
      https://github.com/OpenSIPS/opensips/commit/279b2114ad3b227f1e7534e256e2833fed98688a
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2023-05-04 (Thu, 04 May 2023)

  Changed paths:
    M modules/call_center/call_center.c
    M modules/call_center/cc_data.c
    M modules/call_center/cc_data.h

  Log Message:
  -----------
  [call_center] fix overflowing the per-agent array of skills

As the array of skills is pre-allocated inside the agent struct, be sure you do not overflow it when populating the agent's skills (from DB).
Also, the logstate/logged_in value for an agent is read from DB or MI and it must be forced to 0/1 values, as it is later used as index. Yet another overflow fixed here.

(cherry picked from commit 6617ecc805520961642c16ac1e6c5a49787af2ab)
(cherry picked from commit d38c9dfe3dfc4354a9049edf6e6e96b2ed07b2b6)





More information about the Devel mailing list