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

Liviu Chircu noreply at github.com
Mon Sep 30 09:14:07 EDT 2019


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


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


Compare: https://github.com/OpenSIPS/opensips/compare/8dd6ee52f403...f4f5f8d082dd



More information about the Devel mailing list