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

Liviu Chircu noreply at github.com
Thu Sep 15 13:27:23 UTC 2022


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





More information about the Devel mailing list