[OpenSIPS-Devel] [OpenSIPS/opensips] 471b31: compression: Fix math bug leading to bad Content-L...
Liviu Chircu
noreply at github.com
Thu Nov 24 10:33:39 UTC 2022
Branch: refs/heads/3.1
Home: https://github.com/OpenSIPS/opensips
Commit: 471b31cf6d2a16d593fb07252ccb85d87c6a0138
https://github.com/OpenSIPS/opensips/commit/471b31cf6d2a16d593fb07252ccb85d87c6a0138
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