- 25 8月, 2014 2 次提交
-
-
由 root 提交于
-
由 Mike Jerris 提交于
Merge pull request #29 in FS/freeswitch from ~ITALOROSSI/freeswitch:bugfix/FS-5522-add-switchname-xml-json-cdr to master * commit 'd55505ce': Adding switchname to xml_cdr and json_cdr
-
- 24 8月, 2014 1 次提交
-
-
由 root 提交于
-
- 22 8月, 2014 15 次提交
-
-
由 Brian West 提交于
-
由 Brian West 提交于
-
由 Travis Cross 提交于
Modern static analyzers warn when a variable is set but not used. GCC warns when the result of a function marked as `__attribute__((warn_unused_result))` is not set to some variable, even when the function is cast to `(void)`, which is the recognized way of indicating the intent to ignore the result. We treat all warnings as errors. The combination of behaviors here makes it difficult if we really don't care about the result of the function; the obvious workarounds are precluded. GCC's maintainers don't consider this to be a bug: Why do you think this is a bug? warn_unused_result is for cases where "not checking the result is either a security problem or always a bug". https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25509#c1 GLIBC however marks functions like `read` and `write` with this attribute. While it certainly in most cases is correct to act on their return value, in some cases we really just don't care. So when we see that we're building with GCC, and that we're building with all warnings enabled, we'll just pass -Wno-unused-result to disable the warning. ref: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25509 ref: https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
-
由 Italo Rossi 提交于
-
由 William King 提交于
-
由 Travis Cross 提交于
Clang's static analyzer thinks we could be using `hosts` here when it is NULL. We probably weren't, but it's easy to see how it could think so. We were checking whether `from_addr` matched `ice->addr` three times, and between the second on third time we might have modified the `ice->addr`; however we only get there if it matched the second time, so we could only make it not match at that point and avoid the third branch. We can't make it match where it did not before. We'll simplify the logic a bit here so static analyzers (and humans) can hopefully see this more readily.
-
由 Travis Cross 提交于
When zero was passed for the size to `sub_alloc`, we were passing this size on to `malloc` or `calloc`, which is unusual enough that static analyzers warn about this (POSIX says that either NULL or a pointer will be returned). We'll instead just return NULL right away.
-
由 Travis Cross 提交于
-
由 Travis Cross 提交于
When the number of channels was zero, we were calling malloc with a size of zero. While defined, this is unusual. And since we're initializing the speex resampler as though there were one channel in this case, we should probably just allocate the space for it.
-
由 Travis Cross 提交于
Clang's static analyzer noticed the result of realloc was being assigned to a pointer of a different type than was used to calculate the new size. We can make things simpler and more idiomatic here by using the correct pointer type and letting C's pointer arithmetic automatically handle some multiplication. We also use the distributive property here to simplify the calculation for memset.
-
由 Travis Cross 提交于
-
由 Travis Cross 提交于
-
由 Travis Cross 提交于
-
由 Travis Cross 提交于
The `switch_split_date` and `switch_split_time` functions only set as many variables as they believe exist values in the input string. Since we didn't have defaults assigned we would read undefined stack memory if the input string didn't contain e.g. an hour. With this commit, we use 1970 if no year is present, January if no month is present, the first day of the month if none is given, and zero for each of a missing hour, minute, or second.
-
由 Travis Cross 提交于
We're moving the variable declarations down to the smallest possible scope (a good idea in general) so we can address the use of undefined memory by the function in a later commit.
-
- 21 8月, 2014 5 次提交
-
-
由 Travis Cross 提交于
mod_curl currently does not verify the authenticity of the peer's certificate, and does not verify whether the common name on the certificate matches the server. This makes mod_curl initiated TLS connections completely insecure. We should fix this, but until we do, we'll warn people that it's not doing what they may think it is. ref: http://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYPEER.html ref: http://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYHOST.html
-
由 Travis Cross 提交于
-
由 Brian West 提交于
* commit 'c736cf2f': Add sofia gateway parameter "destination-prefix" FS-5497 add sofia gateway parameter destination-prefix in case you need to send Invites with prefix only to this gateway
-
由 Giovanni Maruzzelli 提交于
-
由 Chris Rienzo 提交于
mod_graylog2: channel variables can now be automatically added as gelf additional fields in logs w/ session UUID
-
- 20 8月, 2014 3 次提交
-
-
由 Nathan Neulinger 提交于
-
由 Nathan Neulinger 提交于
-
由 Travis Cross 提交于
`curl_sendfile` generates a multipart message with Content-Type: multipart/form-data with no separate Content-Type headers in the parts for each non-file argument. These parts therefore default to text/plain. However, prior to this commit, we were putting the URL encoded POST data into these parts, which is not correct. We should be putting raw text into the parts. With this commit, we urldecode each argument key and value before composing the multipart message. See: http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.2
-
- 19 8月, 2014 2 次提交
-
-
-
由 Stan Gor 提交于
FS-5497 add sofia gateway parameter destination-prefix in case you need to send Invites to your provider with prefix only to this gateway
-
- 18 8月, 2014 4 次提交
-
-
由 Anthony Minessale 提交于
-
由 Giovanni Maruzzelli 提交于
-
由 Giovanni Maruzzelli 提交于
-
由 Giovanni Maruzzelli 提交于
-
- 17 8月, 2014 1 次提交
-
-
由 Jeff Lenk 提交于
-
- 16 8月, 2014 2 次提交
- 15 8月, 2014 5 次提交
-
-
由 Anthony Minessale 提交于
-
由 Anthony Minessale 提交于
-
由 Anthony Minessale 提交于
-
由 Anthony Minessale 提交于
-
由 Anthony Minessale 提交于
-