[OpenSIPS-Devel] [OpenSIPS/opensips] f89a96: modules: fix array termination in cmd_export_t

Răzvan Crainea noreply at github.com
Fri Jan 14 09:55:52 UTC 2022


  Branch: refs/heads/3.2
  Home:   https://github.com/OpenSIPS/opensips
  Commit: f89a96813578a166c2ef8899b4db5980e74a0294
      https://github.com/OpenSIPS/opensips/commit/f89a96813578a166c2ef8899b4db5980e74a0294
  Author: Razvan Crainea <razvan at opensips.org>
  Date:   2022-01-14 (Fri, 14 Jan 2022)

  Changed paths:
    M modules/db_text/dbtext.c
    M modules/proto_ws/proto_ws.c
    M modules/proto_wss/proto_wss.c

  Log Message:
  -----------
  modules: fix array termination in cmd_export_t

Terminate the commands array with an NULL entry, as this breaks on some
architectures that do add enough padding after the structure, and
allocates it right next to the following structure.

Many thanks to Dan Jenkins (@danjenkins) for reporting it!

(cherry picked from commit 05115c42e40bc54c2210a1ab5b89607383e18343)





More information about the Devel mailing list