[OpenSIPS-Devel] [OpenSIPS/opensips] 0ea900: mid_registrar: Fix regression introduced in c11f92698

Liviu Chircu noreply at github.com
Tue Sep 28 11:55:22 EST 2021


  Branch: refs/heads/3.1
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 0ea900e5c0b6bb1ab1d58506cfd6c79a3a852ef2
      https://github.com/OpenSIPS/opensips/commit/0ea900e5c0b6bb1ab1d58506cfd6c79a3a852ef2
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2021-09-28 (Tue, 28 Sep 2021)

  Changed paths:
    M modules/mid_registrar/save.c

  Log Message:
  -----------
  mid_registrar: Fix regression introduced in c11f92698

Avoid re-using anonymous structures outside of the block scope they were
declared in, as the compiler may easily re-use that stack memory outside
the given scope.

Credits to Andrew Yager for providing debugging info, as well as
bisecting down to the exact culprit commit!

(cherry picked from commit 8df8fd960b3311487b58e10244023ca547884536)





More information about the Devel mailing list