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

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


  Branch: refs/heads/3.2
  Home:   https://github.com/OpenSIPS/opensips
  Commit: b549476248c9e418cd14733dc53e922d7667f0b3
      https://github.com/OpenSIPS/opensips/commit/b549476248c9e418cd14733dc53e922d7667f0b3
  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: c32349f4833bf4b57dc3597346fdafc241a301ec
      https://github.com/OpenSIPS/opensips/commit/c32349f4833bf4b57dc3597346fdafc241a301ec
  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/1ddbcf3f941f...c32349f4833b



More information about the Devel mailing list