Skip to content
Snippets Groups Projects
  1. Feb 27, 2019
    • George Joseph's avatar
      CI: Update jenkinsfiles with new Gerrit URLs · 735c0a39
      George Joseph authored
      The recent upgrade of Gerrit to 2.16 elimiated referencing a
      repository in a way the jenkinsfiles were relying on so
      the URL references were changed to a more consistent and supported
      format.
      
      Change-Id: I2e8e3f213b9a96bb1b27665eca4a9a24bc49820e
      (cherry picked from commit 5ce08457)
      735c0a39
  2. Dec 26, 2018
  3. Dec 03, 2018
  4. Nov 14, 2018
    • George Joseph's avatar
      AST-2018-010: Fix length of buffer needed for SRV and NAPTR results · e5a59484
      George Joseph authored
      When dn_expand was being called on SRV and NAPTR results, the
      return value was being used to calculate the size of the buffer
      needed to store the host names.  Since dn_expand returns the
      length of the COMPRESSED name the buffer could be too short
      to hold the EXPANDED name.  The expanded name is NULL terminated
      so using strlen() is the correct way to determine the length
      actually needed for the buffer.
      
      ASTERISK-28127
      Reported by: Jan Hoffmann
      
      patches:
        patch.diff submitted by janhoffmann (license 6986)
      
      Change-Id: I4d35d6c431c6c6836cb61d37b1378cc47f0b414d
      e5a59484
  5. Oct 05, 2018
  6. Oct 04, 2018
  7. Oct 03, 2018
  8. Oct 02, 2018
    • Richard Mudgett's avatar
      res_smdi.c: Fix module ref counting and inverted test. · a2b6bbfc
      Richard Mudgett authored
      I think this module is so screwed up that it doesn't work anymore.  Even
      with these attempts to fix things it still won't gracefully shut down.
      The module refs will not go to zero to allow unloading the module.
      
      * Fix module ref counting dealing with the SMDI interface object.  There
      were several off-nominal paths that unbalanced the module ref count.  Also
      the destructor freed the ao2 object itself which is bad.  Made the
      smdi_read thread not hold its own ref to the SMDI interface object so when
      all refs go away the destructor will stop the listener thread.
      
      * Fixed the smdi_load() return code of 1 concerning the number of
      listeners.  The test was inverted.
      
      Change-Id: Ic288db51b58e395d6a2fc3847f77176c16988784
      a2b6bbfc
    • Corey Farrell's avatar
      Resolve warning about duplicate 'dialplan' CLI. · f8b71fad
      Corey Farrell authored
      Change-Id: I029db1b4a32ccfb38374d6fe944dc430866f4b30
      f8b71fad
    • Corey Farrell's avatar
      loader: Fix result of module reload error. · 2c43e5ba
      Corey Farrell authored
      When a module reload fails we never set AST_MODULE_RELOAD_ERROR.  This
      caused reload failures to incorrectly report 'No module found'.
      
      Change-Id: I5f3953e0f7d135e53ec797f24c97ee3f73f232e7
      Unverified
      2c43e5ba
    • neutrino88's avatar
      core/frame: Fix ast_frdup() and ast_frisolate() for empty text frames · 633ac0e9
      neutrino88 authored
      If a channel creates an AST_TEXT_FRAME with datalen == 0, the ast_frdup()
      and ast_frisolate() functions could create a clone frame with an invalid
      data.ptr which would cause a crash.  The proposed fix is to make sure that
      for such empty text frames, ast_frdup() and ast_frisolate() return cloned
      text frames with a valid data.ptr.
      
      ASTERISK-28076
      Reported by: Emmanuel BUU
      Tested by: Emmanuel BUU
      
      Change-Id: Ib882dd028598f13c4c233edbfdd7e54ad44a68e9
      633ac0e9
    • Corey Farrell's avatar
      astobj2: Record lock usage to refs log when DEBUG_THREADS is enabled. · 078459b3
      Corey Farrell authored
      When DEBUG_THREADS is enabled we can know if the astobj2 mutex / rwlock
      was ever used, so it can be recorded in the REF_DEBUG destructor entry.
      
      Create contrib/scripts/reflocks.py to process locking used by
      allocator.  This can be used to identify places where
      AO2_ALLOC_OPT_LOCK_NOLOCK should be used to reduce memory usage.
      
      Change-Id: I2e3cd23336a97df2692b545f548fd79b14b53bf4
      078459b3
  9. Oct 01, 2018
  10. Sep 28, 2018
  11. Sep 27, 2018
    • Corey Farrell's avatar
      astobj2: Reduce memory overhead. · 4afcd37d
      Corey Farrell authored
      Reduce options to 2-bit field, magic to 30 bit field.  Move ref_counter
      next to options the fields will pack.
      
      This reduces memory overhead for every ao2 object by 8 bytes on x86_64.
      
      Change-Id: Idc1baabb35ec3b3d8de463c4fa3011eaf7fcafb5
      Unverified
      4afcd37d
    • Sean Bright's avatar
      config.c: Cleanup AST_INCLUDE_GLOB · 066cade8
      Sean Bright authored
      * In main/config.c, AST_INCLUDE_GLOB is fixed to '1' making the #ifdefs
        pointless.
      
      * In utils/extconf.c, AST_INCLUDE_GLOB is never defined so there is a
        lot of dead code.
      
      Change-Id: I1bad1a46d7466ddf90d52cc724e997195495226c
      066cade8
Loading