[OpenSIPS-Devel] [OpenSIPS/opensips] 9a8499: Merge branch 'compression_overflow' of github.com:...
Liviu Chircu
noreply at github.com
Tue May 19 15:26:40 UTC 2026
Branch: refs/heads/4.0
Home: https://github.com/OpenSIPS/opensips
Commit: 9a8499142c5e11600ab227e6244b7a8d610f50f0
https://github.com/OpenSIPS/opensips/commit/9a8499142c5e11600ab227e6244b7a8d610f50f0
Author: Liviu Chircu <liviu at opensips.org>
Date: 2026-05-19 (Tue, 19 May 2026)
Changed paths:
M modules/compression/compression.c
Log Message:
-----------
Merge branch 'compression_overflow' of github.com:john08burke/opensips into john08burke-compression_overflow
mc_compact() calculated the output size of preserved headers using the
normalized parser fields: header name, ": ", body and CRLF.
However, for preserved long-form headers, it wrote the original raw header
span instead. If the input header contained extra whitespace after the
colon, such as "Supported: 100rel", the writer emitted more bytes than
the size calculation reserved, causing a buffer overflow and later memory
corruption.
Always rebuild preserved headers from the same normalized fields used by
the length calculation, instead of mixing normalized accounting with raw
header copying.
(cherry picked from commit d016658049fe5e2fa1061d16365507de0816fdce)
To unsubscribe from these emails, change your notification settings at https://github.com/OpenSIPS/opensips/settings/notifications
More information about the Devel
mailing list