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

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


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