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

Liviu Chircu noreply at github.com
Thu Nov 24 10:33:38 UTC 2022


  Branch: refs/heads/3.2
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 7f04e91adceca9063dfcf34e970daab92147a52e
      https://github.com/OpenSIPS/opensips/commit/7f04e91adceca9063dfcf34e970daab92147a52e
  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().

(cherry picked from commit 37213d245c63e426a16004ab161823bd5c2cc1ec)





More information about the Devel mailing list