[OpenSIPS-Devel] [OpenSIPS/opensips] 67e929: dispatcher: Fix rare crash with 'pvar_algo_pattern'

Liviu Chircu noreply at github.com
Fri Jan 10 16:24:16 UTC 2025


  Branch: refs/heads/3.5
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 67e9294c871f96e5b9acb81a26f989d9eb7efc85
      https://github.com/OpenSIPS/opensips/commit/67e9294c871f96e5b9acb81a26f989d9eb7efc85
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2025-01-10 (Fri, 10 Jan 2025)

  Changed paths:
    M modules/dispatcher/dispatch.c
    M modules/dispatcher/dispatch.h

  Log Message:
  -----------
  dispatcher: Fix rare crash with 'pvar_algo_pattern'

This patch simply moves the name buffer for the 'pvar_algo_pattern' into
SHM rather than a stack buffer, in order to avoid invalid memory being
referenced past the function's return point.

Many thanks to Eric Tamme from Five9 for reporting & testing!

(cherry picked from commit fe1a50d2513296819179612b8b072ab70871b9eb)



To unsubscribe from these emails, change your notification settings at https://github.com/OpenSIPS/opensips/settings/notifications



More information about the Devel mailing list