[OpenSIPS-Devel] [OpenSIPS/opensips] cb7699: parse_content_length(): Fix out-of-bounds read edg...

Liviu Chircu noreply at github.com
Tue Feb 7 13:56:44 UTC 2023


  Branch: refs/heads/3.3
  Home:   https://github.com/OpenSIPS/opensips
  Commit: cb7699b12846eb627ffa4f47bcdafe2373540987
      https://github.com/OpenSIPS/opensips/commit/cb7699b12846eb627ffa4f47bcdafe2373540987
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2023-02-07 (Tue, 07 Feb 2023)

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

  Log Message:
  -----------
  parse_content_length(): Fix out-of-bounds read edge-case (OSS-Fuzz)

This patch fixes a possible off-by-one read overflow while parsing a bad
Content-Length header.  The error was mostly harmless, as the supplied
buffer is typically much larger and is stored in PKG memory.

Severity: Low
Fixes OSS-Fuzz#53199

(cherry picked from commit a008e7c2385bcd83de2f9ab155ed8a9452bf3c5c)





More information about the Devel mailing list