[OpenSIPS-Devel] [OpenSIPS/opensips] 1fedf6: Merge branch 'compression_overflow' of github.com:...

Liviu Chircu noreply at github.com
Tue May 19 15:27:09 UTC 2026


  Branch: refs/heads/3.4
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 1fedf698d5a0b3284867fdb1ab3e0bfb8af2f472
      https://github.com/OpenSIPS/opensips/commit/1fedf698d5a0b3284867fdb1ab3e0bfb8af2f472
  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)
(cherry picked from commit 9a8499142c5e11600ab227e6244b7a8d610f50f0)



To unsubscribe from these emails, change your notification settings at https://github.com/OpenSIPS/opensips/settings/notifications



More information about the Devel mailing list