]> git.ipfire.org Git - thirdparty/freeswitch.git/log
thirdparty/freeswitch.git
12 years agoFixed a weakness in error UDPTL lost packet recovery. Hopefully this addresses
Steve Underwood [Mon, 20 May 2013 03:30:11 +0000 (11:30 +0800)] 
Fixed a weakness in error UDPTL lost packet recovery. Hopefully this addresses
FS5202.

12 years agoSwap this
Brian West [Fri, 31 May 2013 14:15:45 +0000 (09:15 -0500)] 
Swap this

12 years agoUnsigned values are never less than zero
Travis Cross [Sun, 26 May 2013 10:57:07 +0000 (10:57 +0000)] 
Unsigned values are never less than zero

12 years agoAvoid using psession uninitialized in mod_fsk
Travis Cross [Sun, 26 May 2013 09:54:39 +0000 (09:54 +0000)] 
Avoid using psession uninitialized in mod_fsk

12 years agoAvoid using memory after we free it
Travis Cross [Tue, 28 May 2013 05:28:19 +0000 (05:28 +0000)] 
Avoid using memory after we free it

Without setting errmsg to NULL here, we'll try to print this freed
value again below if another error doesn't intercede.

12 years agoAvoid dereferencing potential null value
Travis Cross [Tue, 28 May 2013 03:55:48 +0000 (03:55 +0000)] 
Avoid dereferencing potential null value

12 years agoRemove assignment without effect
Travis Cross [Tue, 28 May 2013 03:46:53 +0000 (03:46 +0000)] 
Remove assignment without effect

12 years agoAvoid dereferencing potential null value
Travis Cross [Tue, 28 May 2013 03:41:44 +0000 (03:41 +0000)] 
Avoid dereferencing potential null value

12 years agoHandle potential malloc failure better
Travis Cross [Tue, 28 May 2013 03:40:58 +0000 (03:40 +0000)] 
Handle potential malloc failure better

12 years agoAdd missing text editor local variable blocks
Travis Cross [Sat, 25 May 2013 09:47:12 +0000 (09:47 +0000)] 
Add missing text editor local variable blocks

12 years agoFix unlikely memory leak in ESL
Travis Cross [Tue, 28 May 2013 03:01:49 +0000 (03:01 +0000)] 
Fix unlikely memory leak in ESL

12 years agoRemove assignment without effect in fs_cli
Travis Cross [Mon, 27 May 2013 20:47:22 +0000 (20:47 +0000)] 
Remove assignment without effect in fs_cli

12 years agoAvoid dangling reference at end of fs_cli
Travis Cross [Mon, 27 May 2013 20:47:04 +0000 (20:47 +0000)] 
Avoid dangling reference at end of fs_cli

Not that it really matters since we're returning to the OS momentarily
at that point anyway.

12 years agoAdd common include paths for jni.h and jni_md.h
Travis Cross [Sun, 26 May 2013 10:53:31 +0000 (10:53 +0000)] 
Add common include paths for jni.h and jni_md.h

12 years agoFS-5479 --resolve
Jeff Lenk [Mon, 27 May 2013 14:21:43 +0000 (09:21 -0500)] 
FS-5479 --resolve

12 years agofix unused parameter warning on windows
Jeff Lenk [Mon, 27 May 2013 14:18:56 +0000 (09:18 -0500)] 
fix unused parameter warning on windows

12 years agoFix variable type in mod_nibblebill
Travis Cross [Sun, 26 May 2013 11:16:58 +0000 (11:16 +0000)] 
Fix variable type in mod_nibblebill

12 years agoWork around error in pocketsphinx-0.7
Travis Cross [Sun, 26 May 2013 11:25:08 +0000 (11:25 +0000)] 
Work around error in pocketsphinx-0.7

  fsg_search.c:263:2: error: non-void function 'fsg_search_reinit' should return a value [-Wreturn-type]

12 years agoRemove self-assignment without any effect
Travis Cross [Sun, 26 May 2013 09:25:29 +0000 (09:25 +0000)] 
Remove self-assignment without any effect

clang:

  error: explicitly assigning a variable of type 'uint16_t' (aka 'unsigned short') to itself [-Werror,-Wself-assign]

12 years agoAdd missing newline at end of mod_say_fa.c
Travis Cross [Sun, 26 May 2013 11:28:06 +0000 (11:28 +0000)] 
Add missing newline at end of mod_say_fa.c

12 years agoFS-5157 patch accepted
Mariusz Czułada [Tue, 28 May 2013 22:19:49 +0000 (00:19 +0200)] 
FS-5157 patch accepted

12 years agolog auto adjust ip and port separate so it doesn't get clobbered on hold/update events
Brian West [Tue, 28 May 2013 21:26:05 +0000 (16:26 -0500)] 
log auto adjust ip and port separate so it doesn't get clobbered on hold/update events

12 years agoFS-5480 --resolve
Anthony Minessale [Tue, 28 May 2013 13:17:44 +0000 (08:17 -0500)] 
FS-5480 --resolve

12 years agoRemove unused variable in mod_rtmp
Travis Cross [Sun, 26 May 2013 04:53:16 +0000 (04:53 +0000)] 
Remove unused variable in mod_rtmp

Unused variables break the build with recent versions of gcc and
clang.

12 years agoAdd commit note about shell escaping
Travis Cross [Sun, 26 May 2013 05:25:12 +0000 (05:25 +0000)] 
Add commit note about shell escaping

Disregard the supplemental commit text on
commit a744b202fd0260631d91a9e53672819b102feb48.

switch_util_quote_shell_arg() is fine.

12 years agoQuote arguments to shell when sending email
Travis Cross [Sun, 26 May 2013 01:27:16 +0000 (01:27 +0000)] 
Quote arguments to shell when sending email

Note that the function switch_util_quote_shell_arg is implemented
incorrectly for unix shells, so this is still not safe until that
function is fixed.

Reported-by: Nathan Neulinger <nneul@mst.edu>
FS-5450 --resolve

12 years agoFix memory leaks in mod_tts_commandline
Travis Cross [Sun, 26 May 2013 01:03:08 +0000 (01:03 +0000)] 
Fix memory leaks in mod_tts_commandline

We were using both switch_util_quote_shell_arg and
switch_string_replace without freeing the results even though both
functions malloc.

12 years agoLeave room for switch_escape_string to add a terminating null
Travis Cross [Sat, 25 May 2013 23:28:55 +0000 (23:28 +0000)] 
Leave room for switch_escape_string to add a terminating null

Thanks-to: Nathan Neulinger <nneul@mst.edu>
FS-5448 --resolve

12 years agoFix comment spelling
Travis Cross [Sat, 25 May 2013 21:40:13 +0000 (21:40 +0000)] 
Fix comment spelling

Thanks-to: Mariusz Czułada <manieq.net@gmail.com>
12 years agoFix memory corruption in mod_erlang_event
Travis Cross [Sat, 25 May 2013 21:20:41 +0000 (21:20 +0000)] 
Fix memory corruption in mod_erlang_event

Thanks-to: Alexandre Snarskii <snar@snar.spb.ru>
FS-5465 --resolve

12 years agoDon't setup ZRTP without a session and channel
Travis Cross [Sat, 25 May 2013 20:53:52 +0000 (20:53 +0000)] 
Don't setup ZRTP without a session and channel

FS-5472 --resolve

12 years agoHandle a failure of strerror_r
Travis Cross [Sat, 25 May 2013 09:49:32 +0000 (09:49 +0000)] 
Handle a failure of strerror_r

This fixes the build on gcc-4.7.3.  The build was breaking with:

  error: ignoring return value of 'strerror_r', declared with attribute warn_unused_result [-Werror=unused-result]

12 years agoFix a possible deadlock scenario in the impossible scenario from the last patch.
William King [Sat, 25 May 2013 18:06:01 +0000 (11:06 -0700)] 
Fix a possible deadlock scenario in the impossible scenario from the last patch.

12 years agoRedundant code. The if/else block makes more sense than the equivalent in two separat...
William King [Sat, 25 May 2013 14:46:47 +0000 (07:46 -0700)] 
Redundant code. The if/else block makes more sense than the equivalent in two separate if's.

12 years agoBetter to not pass tmp_socket to setsockopt if there was an error here creating the...
William King [Sat, 25 May 2013 14:36:43 +0000 (07:36 -0700)] 
Better to not pass tmp_socket to setsockopt if there was an error here creating the socket.

12 years agoIt's been missing a break there for ~4 years and instead using the 8k max_ms values...
William King [Sat, 25 May 2013 14:15:49 +0000 (07:15 -0700)] 
It's been missing a break there for ~4 years and instead using the 8k max_ms values(the ptime_div value is the same).

12 years agoCleaning up logically dead code.
William King [Sat, 25 May 2013 14:02:33 +0000 (07:02 -0700)] 
Cleaning up logically dead code.

12 years agoThis condition should NEVER be hit, but in case the started thread is unable to locat...
William King [Sat, 25 May 2013 13:51:22 +0000 (06:51 -0700)] 
This condition should NEVER be hit, but in case the started thread is unable to locate itself in the EVENT_DISOATCH_QUEUE_THREADS array, it's best to return null here and kill the unexpected event thread rather than segfault FS by writing outside of the bounds of the EVENT_DISPATCH_QUEUE_RUNNING array.

12 years agoSmall off by one error. If the array is of size 144, then an index of 144 inclusive...
William King [Sat, 25 May 2013 13:41:03 +0000 (06:41 -0700)] 
Small off by one error. If the array is of size 144, then an index of 144 inclusive is an error.

12 years agoLet's bit a bit safer when dereferencing pointers.
William King [Sat, 25 May 2013 03:03:19 +0000 (20:03 -0700)] 
Let's bit a bit safer when dereferencing pointers.

12 years agoRemoving logically dead code
William King [Sat, 25 May 2013 02:59:20 +0000 (19:59 -0700)] 
Removing logically dead code

12 years agoIf there is a problem reading the dictionary file, don't leak memory...
William King [Sat, 25 May 2013 02:55:37 +0000 (19:55 -0700)] 
If there is a problem reading the dictionary file, don't leak memory...

12 years agoRemoving unused code
William King [Sat, 25 May 2013 02:53:10 +0000 (19:53 -0700)] 
Removing unused code

12 years agoMore explicit and defensive code so if the init fails we know we handling this pointe...
William King [Sat, 25 May 2013 02:49:20 +0000 (19:49 -0700)] 
More explicit and defensive code so if the init fails we know we handling this pointer safely, because  rc_config_init will free the pointer if there was a problem, but it will not set the pointer to NULL.

12 years agoAnother location where mod_rtmp would leak memory.
William King [Sat, 25 May 2013 02:45:24 +0000 (19:45 -0700)] 
Another location where mod_rtmp would leak memory.

12 years agoFix improper handling of a double linked list that could have caused a memory leak.
William King [Sat, 25 May 2013 02:42:02 +0000 (19:42 -0700)] 
Fix improper handling of a double linked list that could have caused a memory leak.

12 years agoAppears to have been a copy paste error because this doesn't do what the api claims...
William King [Sat, 25 May 2013 02:35:43 +0000 (19:35 -0700)] 
Appears to have been a copy paste error because this doesn't do what the api claims, and it also leaks the reference to the new node.

12 years agoFixing a memory leak. name needs to be freed since it's being strdup'd lower.
William King [Sat, 25 May 2013 02:30:57 +0000 (19:30 -0700)] 
Fixing a memory leak. name needs to be freed since it's being strdup'd lower.

12 years agoFS-5470 --resolve
Anthony Minessale [Fri, 24 May 2013 14:37:25 +0000 (09:37 -0500)] 
FS-5470 --resolve

12 years agoFS-5466 --resolve
Anthony Minessale [Fri, 24 May 2013 14:14:13 +0000 (09:14 -0500)] 
FS-5466 --resolve

12 years agoFS-5042 changed event body creation
Mariusz Czułada [Fri, 24 May 2013 10:18:00 +0000 (12:18 +0200)] 
FS-5042 changed event body creation

12 years agoFS-4871: reduce logging a bit
Raymond Chandler [Fri, 24 May 2013 00:51:25 +0000 (20:51 -0400)] 
FS-4871: reduce logging a bit

12 years agoFS-5389
Jeff Lenk [Wed, 8 May 2013 16:36:13 +0000 (11:36 -0500)] 
FS-5389

12 years agoFS-5389 --resolve
Jeff Lenk [Wed, 8 May 2013 13:37:10 +0000 (08:37 -0500)] 
FS-5389 --resolve

12 years agoFS-4871 --resolve
Raymond Chandler [Tue, 7 May 2013 19:07:04 +0000 (15:07 -0400)] 
FS-4871 --resolve

12 years agoFS-5453 --resolve
Anthony Minessale [Fri, 24 May 2013 13:13:41 +0000 (08:13 -0500)] 
FS-5453 --resolve

12 years agoFS-5453 --resolve this is a different issue, we just have to hangup the loopback...
Anthony Minessale [Thu, 23 May 2013 14:59:00 +0000 (09:59 -0500)] 
FS-5453 --resolve this is a different issue, we just have to hangup the loopback channel so the loopback and the sip don't both execute the extension

12 years agoswig
Anthony Minessale [Thu, 23 May 2013 14:55:52 +0000 (09:55 -0500)] 
swig

12 years agoFS-5042 --resolve
Anthony Minessale [Thu, 23 May 2013 13:07:10 +0000 (08:07 -0500)] 
FS-5042 --resolve

12 years agoFS-5453 --resolve
Anthony Minessale [Thu, 23 May 2013 13:00:03 +0000 (08:00 -0500)] 
FS-5453 --resolve

12 years agoFS-5402 --resolve the problem is ent originate has many channels and many causes...
Anthony Minessale [Wed, 22 May 2013 16:01:39 +0000 (11:01 -0500)] 
FS-5402 --resolve the problem is ent originate has many channels and many causes to parse so we need to check it against all the causes

12 years agoFS-5360 change defaults
Anthony Minessale [Wed, 22 May 2013 15:20:29 +0000 (10:20 -0500)] 
FS-5360 change defaults

12 years agoFS-5436 --resolve
Anthony Minessale [Wed, 22 May 2013 00:39:02 +0000 (19:39 -0500)] 
FS-5436 --resolve

12 years agoFS-5402 revert wait till tomorrow
Anthony Minessale [Tue, 21 May 2013 18:29:05 +0000 (13:29 -0500)] 
FS-5402 revert wait till tomorrow

12 years agoFS-5402
Anthony Minessale [Tue, 21 May 2013 18:22:17 +0000 (13:22 -0500)] 
FS-5402

12 years agoFS-5453 --resolve
Anthony Minessale [Tue, 21 May 2013 17:01:57 +0000 (12:01 -0500)] 
FS-5453 --resolve

12 years agoFS-5457
Anthony Minessale [Tue, 21 May 2013 15:21:45 +0000 (10:21 -0500)] 
FS-5457

12 years agoFS-5376 --resolve
Anthony Minessale [Tue, 21 May 2013 15:04:35 +0000 (10:04 -0500)] 
FS-5376 --resolve

12 years agoFS-5242
Anthony Minessale [Tue, 21 May 2013 15:03:22 +0000 (10:03 -0500)] 
FS-5242

12 years agoFS-5211 --resolve
Anthony Minessale [Tue, 21 May 2013 14:29:50 +0000 (09:29 -0500)] 
FS-5211 --resolve

12 years agoFS-5360
Anthony Minessale [Mon, 20 May 2013 17:22:58 +0000 (12:22 -0500)] 
FS-5360

12 years agogetting read_impl too soon here
Anthony Minessale [Mon, 20 May 2013 16:22:37 +0000 (11:22 -0500)] 
getting read_impl too soon here

12 years ago1.2.10 Release v1.2.10
Ken Rice [Mon, 20 May 2013 16:07:35 +0000 (11:07 -0500)] 
1.2.10 Release

12 years agoAdd mod_xml_radius to the modules list, though disabled by default.
William King [Sun, 19 May 2013 03:49:51 +0000 (20:49 -0700)] 
Add mod_xml_radius to the modules list, though disabled by default.

12 years agoTheoretical memory leak where if attr_init failed, then check would have still been...
William King [Sun, 19 May 2013 03:42:03 +0000 (20:42 -0700)] 
Theoretical memory leak where if attr_init failed, then check would have still been malloc'd but not used.

12 years agoMinor code cleanup. calling va_start without calling va_end doesn't leak does it...
William King [Sun, 19 May 2013 03:15:14 +0000 (20:15 -0700)] 
Minor code cleanup. calling va_start without calling va_end doesn't leak does it? Either way, it's fixed now.

12 years agofull_contact must be freed by sofia. There isn't a chance of this having blown anythi...
William King [Sun, 19 May 2013 02:13:18 +0000 (19:13 -0700)] 
full_contact must be freed by sofia. There isn't a chance of this having blown anything up, but Coverity is right that this should be initialized with NULL to be safe against future refactors.

12 years agoMy bad. some how a make didn't catch this issue after a cleanup refactor. In this...
William King [Sun, 19 May 2013 00:46:13 +0000 (17:46 -0700)] 
My bad. some how a make didn't catch this issue after a cleanup refactor. In this instance buf is being treated as an 8 byte number, not a pointer.

12 years agoCoverity reported an Uninitialized pointer read. Upon further digging it appears...
William King [Sun, 19 May 2013 00:34:16 +0000 (17:34 -0700)] 
Coverity reported an Uninitialized pointer read. Upon further digging it appears that there is a code path where incoming packets can come in out of order, so this section of code tries to see if it can find the missed packets. As per FS-5202 there is a case where under heavy load the packet exists, and has most of the packet parsed, but still has a NULL pointer for the packet buffer. These two lines would at least help detect the edge case.

12 years agoEdge case for when you are subscribing to presence on a valet parking lot. In which...
William King [Sun, 19 May 2013 00:06:54 +0000 (17:06 -0700)] 
Edge case for when you are subscribing to presence on a valet parking lot. In which case there would be a small leak.

12 years agoPossible leak if someone were to try and add extra headers to a channel that had...
William King [Sun, 19 May 2013 00:00:41 +0000 (17:00 -0700)] 
Possible leak if someone were to try and add extra headers to a channel that had either an inbound info on that session or the session were to be deflected. I don't see a way that these extra headers could be added outside of a C module subscribing to the session states, but just to make sure I'm adding these so that just like other extra header locations it's cleaned up.

12 years agoAlice meet rabit hole. There is a leak here on every invite that comes back from...
William King [Sat, 18 May 2013 23:34:46 +0000 (16:34 -0700)] 
Alice meet rabit hole. There is a leak here on every invite that comes back from a status 180 when the other side is not FS, but you have presence enabled. Thanks to Coverity scan for location this condition. This 'might' not have been leaking if sofia was automatically freeing this when the sofia object was destroyed, but all other locations where sip_header_as_string where called they were all followed by a su_free, so I assume not.

12 years agoIf the mod_sofia global presense hash is null, then make sure to free the matches...
William King [Sat, 18 May 2013 23:05:40 +0000 (16:05 -0700)] 
If the mod_sofia global presense hash is null, then make sure to free the matches variable before going to done.

12 years agoFS-5443: --resolve leaked because the JS api's copy and return new malloc'd pointers.
William King [Sat, 18 May 2013 22:47:01 +0000 (15:47 -0700)] 
FS-5443: --resolve leaked because the JS api's copy and return new malloc'd pointers.

12 years agoWhen message events were added, the debug field name was overlooked. This would have...
William King [Sat, 18 May 2013 22:10:44 +0000 (15:10 -0700)] 
When message events were added, the debug field name was overlooked. This would have only been hit when debug level was above 'DEBUG1' and at that point it would have incorrectly chosen debug display names.

12 years agoMinor typo. User is being passed into this fuction as a long pointer, not a long.
William King [Sat, 18 May 2013 21:29:59 +0000 (14:29 -0700)] 
Minor typo. User is being passed into this fuction as a long pointer, not a long.

12 years agoread() does not NULL terminate statbuf, but strstr expects statbuf to be null terminated.
William King [Sat, 18 May 2013 21:26:40 +0000 (14:26 -0700)] 
read() does not NULL terminate statbuf, but strstr expects statbuf to be null terminated.

12 years agoThis was writing a null one space to the right, outside of the malloc'd buffer. On...
William King [Sat, 18 May 2013 20:38:24 +0000 (13:38 -0700)] 
This was writing a null one space to the right, outside of the malloc'd buffer. On further review this uses apr_vsnprintf which always returns null terminated.

12 years agoFS-5434 --resolve
Jeff Lenk [Sat, 18 May 2013 02:38:32 +0000 (21:38 -0500)] 
FS-5434 --resolve

12 years agofix silence_stream size bug
Anthony Minessale [Fri, 17 May 2013 21:11:04 +0000 (16:11 -0500)] 
fix silence_stream size bug

12 years agoFS-5441: --resolve
William King [Fri, 17 May 2013 19:39:17 +0000 (12:39 -0700)] 
FS-5441: --resolve

12 years agoFS-5430 --resolve
Anthony Minessale [Wed, 15 May 2013 14:27:18 +0000 (09:27 -0500)] 
FS-5430 --resolve

12 years agoFS-5418 --resolve
Anthony Minessale [Wed, 15 May 2013 13:08:41 +0000 (08:08 -0500)] 
FS-5418 --resolve

12 years agoFS-5208 --resolve
Anthony Minessale [Wed, 15 May 2013 12:36:56 +0000 (07:36 -0500)] 
FS-5208 --resolve

12 years agoFS-5011 try to fill gaps
Anthony Minessale [Tue, 14 May 2013 16:22:48 +0000 (11:22 -0500)] 
FS-5011 try to fill gaps

12 years agoFS-5325 force rebuild
Anthony Minessale [Tue, 14 May 2013 12:44:34 +0000 (07:44 -0500)] 
FS-5325 force rebuild

12 years agoFS-5416 --resolve just missing the part that registers it
Anthony Minessale [Tue, 14 May 2013 12:38:00 +0000 (07:38 -0500)] 
FS-5416 --resolve just missing the part that registers it

12 years agoFS-5407 --resolve
Anthony Minessale [Mon, 13 May 2013 19:21:08 +0000 (14:21 -0500)] 
FS-5407 --resolve

12 years agoFS-5410 --resolve
Anthony Minessale [Mon, 13 May 2013 18:15:33 +0000 (13:15 -0500)] 
FS-5410 --resolve

12 years agoFS-5325 windows compile
Jeff Lenk [Fri, 10 May 2013 22:31:01 +0000 (17:31 -0500)] 
FS-5325 windows compile
(cherry picked from commit d466316ace5e797c8130ca672d3ba17c79669f16)