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

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


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



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



More information about the Devel mailing list