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

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


  Branch: refs/heads/3.1
  Home:   https://github.com/OpenSIPS/opensips
  Commit: ae4e82562eb5fa6f89865ef914c6e066d4413411
      https://github.com/OpenSIPS/opensips/commit/ae4e82562eb5fa6f89865ef914c6e066d4413411
  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