[OpenSIPS-Devel] [OpenSIPS/opensips] 25c7c5: Transformations: Fix a series of buffer overrun bugs

Liviu Chircu noreply at github.com
Mon Sep 30 08:44:04 EDT 2019

  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 25c7c5994b382d376ffbdb62b5a4b7474870de7f
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2019-09-30 (Mon, 30 Sep 2019)

  Changed paths:
    M transformations.c

  Log Message:
  Transformations: Fix a series of buffer overrun bugs

This patch adds several buffers, on two layers, such that the following
operations are no longer broken (i.e. leading to buffer overruns and
incorrect results):

    * putting together any kind of transformation chain without the risk
      of reading and writing into the same transformation buffer

    * passing multiple transformation-enabled variables with arbitrary
      chaining lengths to a script function without the risk of any two
      of them making use of the same buffer

Many thanks to Răzvan Crainea for some timely tips!

Fixes #1572

More information about the Devel mailing list