[OpenSIPS-Devel] [OpenSIPS/opensips] 92758d: core "net:" statistics: Fix an integer signedness ...

Liviu Chircu liviu at opensips.org
Thu Mar 30 10:46:44 EDT 2017


  Branch: refs/heads/2.3
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 92758d8ac321028c92127aabbe5230c49f762d7c
      https://github.com/OpenSIPS/opensips/commit/92758d8ac321028c92127aabbe5230c49f762d7c
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2017-03-30 (Thu, 30 Mar 2017)

  Changed paths:
    M socket_info.c
    M socket_info.h

  Log Message:
  -----------
  core "net:" statistics: Fix an integer signedness bug

Due to runaway usage of bitwise shifting, the byte matching code would fail to
work for interfaces having low order bytes with greater values than 128
(e.g. udp:31.32.33.147:5060). Consequently, all "net:" statistics for them
would show up as zeroes.

Thanks to Bogdan and Răzvan for discovering and troubleshooting

(cherry picked from commit 009691c6c7672927f68cfb8a0340166167a04107)


  Commit: 25db051fdc29c600ac7da980a9a83a3ef3fa0ee4
      https://github.com/OpenSIPS/opensips/commit/25db051fdc29c600ac7da980a9a83a3ef3fa0ee4
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2017-03-30 (Thu, 30 Mar 2017)

  Changed paths:
    M ut.c

  Log Message:
  -----------
  base64decode(): Improve robustness

* prevent invalid memory access with well-crafted input
* remove redundant logical AND

(cherry picked from commit ec59cb95fec32899123d658545825dc06a3424c3)


  Commit: d18932a4f04a36ea1bc58e2b6ab24c6e31edbdcb
      https://github.com/OpenSIPS/opensips/commit/d18932a4f04a36ea1bc58e2b6ab24c6e31edbdcb
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2017-03-30 (Thu, 30 Mar 2017)

  Changed paths:
    M modules/mid_registrar/encode.c
    M ut.c
    M ut.h

  Log Message:
  -----------
  mid_registrar: Fix incompatible Contact URI parameter values

This patch adds RFC 3261-compatible "word" encode/decode functions
for Contact URI parameter values, Call-IDs, etc.

Reported by Kirill Galinurov

(cherry picked from commit faa96c2c80e6c58c038ddac01f4822623ef15381)


Compare: https://github.com/OpenSIPS/opensips/compare/de72072061ea...d18932a4f04a


More information about the Devel mailing list