[OpenSIPS-Devel] [OpenSIPS/opensips] fec584: cfg language: Fix binary string comparisons

Liviu Chircu noreply at github.com
Mon Sep 30 08:50:11 EDT 2019


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

  Changed paths:
    M route.c

  Log Message:
  -----------
  cfg language: Fix binary string comparisons

When dealing with binary strings (e.g. the ones produced by {ip.pton}),
some of the string comparison operators were broken, such as: !=, >=, >,
<= and <.

Completes dee8a6a375

(cherry picked from commit 1aac6c20ad6368dcda3cb1ab2ff2e52904627f14)


  Commit: 6dbf27add48910ef0e888e45470f696dfbc62bb2
      https://github.com/OpenSIPS/opensips/commit/6dbf27add48910ef0e888e45470f696dfbc62bb2
  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

(cherry picked from commit 25c7c5994b382d376ffbdb62b5a4b7474870de7f)


Compare: https://github.com/OpenSIPS/opensips/compare/3b81c53f9459...6dbf27add489



More information about the Devel mailing list