[OpenSIPS-Devel] [OpenSIPS/opensips] 37213d: compression: Fix math bug leading to bad Content-L...

Liviu Chircu noreply at github.com
Thu Nov 24 10:30:41 UTC 2022


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 37213d245c63e426a16004ab161823bd5c2cc1ec
      https://github.com/OpenSIPS/opensips/commit/37213d245c63e426a16004ab161823bd5c2cc1ec
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2022-11-24 (Thu, 24 Nov 2022)

  Changed paths:
    M modules/compression/compression.c

  Log Message:
  -----------
  compression: Fix math bug leading to bad Content-Length

Fix an edge-case in mc_ndigits() causing Content-Length values starting
with "10..." to be incorrectly counted.  (e.g. "107" produced 2, not 3).

This bug affected both mc_compact() and mc_compress().





More information about the Devel mailing list