[OpenSIPS-Devel] [OpenSIPS/opensips] 784346: parse_uri: Fix some UB corner-cases (reported by O...

Liviu Chircu noreply at github.com
Thu Sep 15 14:31:37 UTC 2022


  Branch: refs/heads/3.1
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 78434643e9f409d52c4d9123496f06da0d30fab3
      https://github.com/OpenSIPS/opensips/commit/78434643e9f409d52c4d9123496f06da0d30fab3
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2022-09-15 (Thu, 15 Sep 2022)

  Changed paths:
    M parser/parse_uri.c
    M parser/test/test_parser.c

  Log Message:
  -----------
  parse_uri: Fix some UB corner-cases (reported by OSS-Fuzz)

* possible bitwise left shift with a negative value (UB)
* possible integer overflow, due to multiplication (UB)

Fixes OSS-Fuzz#48273

(cherry picked from commit cf95355290c64e2693f88d17e3830405f97962d9)
(cherry picked from commit 7cc624275e6a98322a235062327f2469725dfbb2)


  Commit: 8d714eae91f906154641f4e34206441ff4bd9d8d
      https://github.com/OpenSIPS/opensips/commit/8d714eae91f906154641f4e34206441ff4bd9d8d
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2022-09-15 (Thu, 15 Sep 2022)

  Changed paths:
    M parser/parse_uri.c

  Log Message:
  -----------
  parse_uri: Avoid dereferencing invalid memory on error logging

(cherry picked from commit 99c9a828dd80f2874e89a520150565fa9e9162c7)
(cherry picked from commit 7df9ff7176497c3109ac0648f381aad751ec90dd)


Compare: https://github.com/OpenSIPS/opensips/compare/22fd1760a7be...8d714eae91f9



More information about the Devel mailing list