Skip to content
Snippets Groups Projects
  1. Apr 13, 2015
    • David M. Lee's avatar
      Fixing extconf compile · a573b77f
      David M. Lee authored
      During the mass code deletion for clang support, a stray backslash was
      left behind that was causing utils to fail to compile.
      
      Change-Id: I60e5fa58c9a5b248bde23aaada79ff663f87a2a1
      a573b77f
  2. Apr 06, 2015
  3. Mar 28, 2015
  4. Sep 26, 2014
  5. Apr 04, 2014
    • Richard Mudgett's avatar
      internal_timing: Remove the option and always make it enabled if a timing module is loaded. · 03beadb6
      Richard Mudgett authored
      The masquerade supertest frequently fails because either the local channel
      chain doesn't completely optimize out or the DTMF handshake doesn't
      completely get accross.  Local channel optimization requires frames
      flowing to trigger when optimization can happen.  When optimization
      happens the media frame that triggered the optimization is dropped.
      Sending DTMF requires frames to flow in the other direction for timing
      purposes while sending nothing.  If internal timing is not enabled when
      MOH is playing, Asterisk switches to received timing when an audio frame
      is received.  With optimization dropping media frames and MOH not sending
      frames unless it receives frames, occasionaly there are no more frames
      being passed and the test fails.
      
      * The asterisk command line -I option and the asterisk.conf
      internal_timing option are removed.  Asterisk now always uses internal
      timing when needed if any timing module is loaded.  The issue
      ASTERISK-14861 did this quite awhile ago in v1.4 but effectively is broken
      if other internal timing modules besides DAHDI are used.  The
      ast_read_generator_actions() now only does received timing if it has no
      choice for frame generators like MOH, silence, and playback streaming.
      
      * Cleaned up some code dealing with frame generators in
      ast_deactivate_generator(), generator_write_format_change(),
      ast_activate_generator(), and ast_channel_stop_silence_generator().
      
      * Removed ast_internal_timing_enabled(), AST_OPT_FLAG_INTERNAL_TIMING, and
      ast_opt_internal_timing.
      
      ASTERISK-22846 #close
      Reported by: Matt Jordan
      
      Review: https://reviewboard.asterisk.org/r/3414/
      ........
      
      Merged revisions 411715 from http://svn.asterisk.org/svn/asterisk/branches/1.8
      ........
      
      Merged revisions 411716 from http://svn.asterisk.org/svn/asterisk/branches/11
      ........
      
      Merged revisions 411717 from http://svn.asterisk.org/svn/asterisk/branches/12
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@411724 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      03beadb6
  6. Feb 22, 2014
  7. Jan 22, 2014
  8. Nov 08, 2013
    • Kevin Harwell's avatar
      app_dahdiras: Use waitpid instead of wait4. · 2564ed26
      Kevin Harwell authored
      Several places in the code were using wait4 while other places were using
      waitpid.  This change makes all places use waitpid in order to make things
      more consistent and since the 'rusage' object passed in/out of wait4 was
      never used.
      
      (closes issue ASTERISK-22557)
      Reported by: YvesGael
      Patches:
           asterisk-11.5.1-wait4.patch uploaded by hurdman (license 6537)
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@402546 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      2564ed26
  9. Aug 06, 2013
  10. Aug 05, 2013
  11. Jun 08, 2013
    • Matthew Jordan's avatar
      Add backtrace generation to MALLOC_DEBUG memory corruption reports · c43f380d
      Matthew Jordan authored
      This patch allows astmm to access the backtrace generation code in Asterisk.
      When memory is allocated, a backtrace is created and stored with the memory
      region that tracks the allocation. If a memory corruption is detected, the
      backtrace is printed to the astmm log. The backtrace will make use of the
      BETTER_BACKTRACES build option if available.
      
      As a result, this patch moves the backtrace generation code into its own file
      and uses the non-wrapped versions of the C library memory allocation routines.
      This allows the memory allocation code to safely use the backtrace generation
      routines without infinitely recursing.
      
      Review: https://reviewboard.asterisk.org/r/2567
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@391012 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      c43f380d
  12. Nov 16, 2012
  13. Oct 14, 2012
  14. Aug 01, 2012
  15. Jul 31, 2012
  16. Apr 19, 2012
    • Matthew Jordan's avatar
      Fix a variety of potential buffer overflows · f7829006
      Matthew Jordan authored
      * chan_mobile: Fixed an overrun where the cind_state buffer (an integer array
        of size 16) would be overrun due to improper bounds checking. At worst, the
        buffer can be overrun by a total of 48 bytes (assuming 4-byte integers),
        which would still leave it within the allocated memory of struct hfp.  This
        would corrupt other elements in that struct but not necessarily cause any
        further issues.
      
      * app_sms: The array imsg is of size 250, while the array (ud) that the data
        is copied into is of size 160.  If the size of the inbound message is 
        greater then 160, up to 90 bytes could be overrun in ud.  This would corrupt
        the user data header (array udh) adjacent to ud.
      
      * chan_unistim: A number of invalid memmoves are corrected.  These would move
        data (which may or may not be valid) into the ends of these buffers.
      
      * asterisk: ast_console_toggle_loglevel does not check that the console log
        level being set is less then or equal to the allowed log levels of 32.
      
      * format_pref: In ast_codec_pref_prepend, if any occurrence of the specified
        codec is not found, the value used to index into the array pref->order
        would be one greater then the maximum size of the array.
      
      * jitterbuf: If the element being placed into the jitter buffer lands in the
        last available slot in the jitter history buffer, the insertion sort attempts
        to move the last entry in the buffer into one slot past the maximum length
        of the buffer.  Note that this occurred for both the min and max jitter
        history buffers.
      
      * tdd: If a read from fsk_serial returns a character that is greater then 32,
        an attempt to read past one of the statically defined arrays containing the
        values that character maps to would occur.
      
      * localtime: struct ast_time and tm are not the same size - ast_time is larger,
        although it contains the elements of tm within it in the same layout.  Hence,
        when using memcpy to copy the contents of tm into ast_time, the size of tm
        should be used, as opposed to the size of ast_time.
      
      * extconf: this treats ast_timing's minmask array as if it had a length of 48,
        when it has defined the size of the array as 24.  pbx.h defines minmask as
        having a size of 48.
      
      (issue ASTERISK-19668)
      Reported by: Matt Jordan
      ........
      
      Merged revisions 362485 from http://svn.asterisk.org/svn/asterisk/branches/1.8
      ........
      
      Merged revisions 362496 from http://svn.asterisk.org/svn/asterisk/branches/10
      
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@362497 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      f7829006
  17. Jan 15, 2012
  18. Jul 14, 2011
  19. Feb 04, 2011
  20. Jun 10, 2010
  21. Jun 08, 2010
  22. Jun 02, 2010
  23. May 26, 2010
    • Tilghman Lesher's avatar
      Merged revisions 266142 via svnmerge from · fb80119b
      Tilghman Lesher authored
      https://origsvn.digium.com/svn/asterisk/branches/1.4
      
      ........
        r266142 | tilghman | 2010-05-26 16:11:44 -0500 (Wed, 26 May 2010) | 14 lines
        
        Use sigaction for signals which should persist past the initial trigger, not signal.
        
        If you call signal() in a Solaris signal handler, instead of just resetting
        the signal handler, it causes the signal to refire, because the signal is not
        marked as handled prior to the signal handler being called.  This effectively
        causes Solaris to immediately exceed the threadstack in recursive signal
        handlers and crash.
        
        (closes issue #17000)
         Reported by: rmcgilvr
         Patches: 
               20100526__issue17000.diff.txt uploaded by tilghman (license 14)
         Tested by: rmcgilvr
      ........
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@266146 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      fb80119b
  24. Apr 22, 2010
  25. Aug 10, 2009
  26. Jun 18, 2009
  27. May 21, 2009
    • Kevin P. Fleming's avatar
      Const-ify the world (or at least a good part of it) · e6b2e9a7
      Kevin P. Fleming authored
      This patch adds 'const' tags to a number of Asterisk APIs where they are appropriate (where the API already demanded that the function argument not be modified, but the compiler was not informed of that fact). The list includes:
      
      - CLI command handlers
      - CLI command handler arguments
      - AGI command handlers
      - AGI command handler arguments
      - Dialplan application handler arguments
      - Speech engine API function arguments
      
      In addition, various file-scope and function-scope constant arrays got 'const' and/or 'static' qualifiers where they were missing.
      
      Review: https://reviewboard.asterisk.org/r/251/
      
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@196072 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      e6b2e9a7
  28. Mar 11, 2009
    • Jeff Peeler's avatar
      Fix malloc debug macros to work properly with h323. · 58cf8b69
      Jeff Peeler authored
      The main problem here was that cstdlib was undefining free thereby causing the
      proper debug macros to not be used. ast_h323.cxx has been changed to call
      ast_free instead to avoid the issue. 
      
      A few other issues were addressed:
      - There were a few instances of functions improperly passing ast_free instead
      of ast_free_ptr.
      - Some clean up was done to avoid the debug macros intentionally being redefined.
      (copied below from Kevin's commit, appreciate the help)
      - disable astmm.h from doing anything when STANDALONE is defined, which is used
      by the tools in the utils/ directory that use parts of Asterisk header files in
      hackish ways; also ensure that utils/extconf.c and utils/conf2ael.c are
      compiled with STANDALONE defined.
      
      (closes issue #13593)
      Reported by: pj
      
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@181135 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      58cf8b69
  29. Dec 17, 2008
    • Steve Murphy's avatar
      This patch is here committed to satisfy the · 83478296
      Steve Murphy authored
      buildbot, who has a problem with the const.
      
      
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@165254 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      83478296
    • Steve Murphy's avatar
      A possibly "horrible fix" for a "horribly broken" · 1a37ee40
      Steve Murphy authored
      situation.
      
      As stuff shifts around in the asterisk code, the
      miscellaneous inclusions from the standalone stuff
      gets broken. There's no easy fix for this situation.
      
      I made sure that everything in utils builds without
      problem ***AND*** that aelparse runs the regressions
      correctly with the following make menuselect options
      both on and off:
      
      DONT_OPTIMIZE
      DEBUG_THREADS
      DEBUG_CHANNEL_LOCKS
      MALLOC_DEBUG
      MTX_PROFILE
      DEBUG_SCHEDULER
      DEBUG_THREADLOCALS
      DETECT_DEADLOCKS
      CHANNEL_TRACE
      
      I think from now on, I'm going to #undef
      all these features in the various utils native
      files; I guess I could do the same for the
      copied-in files, surrounded by STANDALONE ifdef.
      
      A standalone isn't going to care about threads,
      mutexes, etc.
      
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@165071 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      1a37ee40
  30. Dec 16, 2008
  31. Nov 29, 2008
    • Kevin P. Fleming's avatar
      incorporates r159808 from branches/1.4: · 887e28d7
      Kevin P. Fleming authored
      ------------------------------------------------------------------------
      r159808 | kpfleming | 2008-11-29 10:58:29 -0600 (Sat, 29 Nov 2008) | 7 lines
      
      update dev-mode compiler flags to match the ones used by default on Ubuntu Intrepid, so all developers will see the same warnings and errors
      
      since this branch already had some printf format attributes, enable checking for them and tag functions that didn't have them
      
      format attributes in a consistent way
      
      
      ------------------------------------------------------------------------
      
      in addition:
      
      move some format attributes from main/utils.c to the header files they belong in, and fix up references to the relevant functions based on new compiler warnings
      
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@159818 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      887e28d7
  32. Nov 06, 2008
  33. Oct 09, 2008
    • Steve Murphy's avatar
      (closes issue #13557) · e235a073
      Steve Murphy authored
      Reported by: nickpeirson
      Patches:
            pbx.c.patch uploaded by nickpeirson (license 579)
            replace_bzero+bcopy.patch uploaded by nickpeirson (license 579)
      Tested by: nickpeirson, murf
      
      1. replaced all refs to bzero and bcopy to memset and memmove instead.
      2. added a note to the CODING-GUIDELINES
      3. add two macros to asterisk.h to prevent bzero, bcopy from creeping
         back into the source
      4. removed bzero from configure, configure.ac, autoconfig.h.in
      
      
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@147807 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      e235a073
  34. Sep 27, 2008
    • Kevin P. Fleming's avatar
      Merged revisions 144924-144925 via svnmerge from · 629861a7
      Kevin P. Fleming authored
      https://origsvn.digium.com/svn/asterisk/branches/1.4
      
      ........
        r144924 | kpfleming | 2008-09-27 10:00:48 -0500 (Sat, 27 Sep 2008) | 6 lines
        
        improve header inclusion process in a few small ways:
        
          - it is no longer necessary to forcibly include asterisk/autoconfig.h; every module already includes asterisk.h as its first header (even before system headers), which serves the same purpose
          - astmm.h is now included by asterisk.h when needed, instead of being forced by the Makefile; this means external modules will build properly against installed headers with MALLOC_DEBUG enabled
          - simplify the usage of some of these headers in the AEL-related stuff in the utils directory
      ........
        r144925 | kpfleming | 2008-09-27 10:13:30 -0500 (Sat, 27 Sep 2008) | 2 lines
        
        fix some minor issues with rev 144924
      ........
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@144949 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      629861a7
  35. Aug 07, 2008
Loading