Commit Graph

21998 Commits

Author SHA1 Message Date
Antonio Silva 2e9ecd1cce mod_verto: fix segfault in verto bye 2024-10-23 15:18:31 +01:00
s3rj1k 07283ac104
[GHA] Add tests. 2024-10-11 20:16:39 +02:00
Jakub Karolczyk b4ebd0936c
[core, mod_sofia] Fix codec set deadlock 2024-10-11 16:16:02 +03:00
Seven Du ef3bd2d8c3
[core] fix base64 decoded size when encoded string contains padding = 2024-10-09 22:53:00 +08:00
Andrey Volk 6e8f30ea8b swigall 2024-08-02 19:39:59 +00:00
Andrey Volk 251da2f905 [mod_mariadb] mariadb_send_query: Coverity 1518917 Calling risky function 2024-07-31 16:04:38 +03:00
Andrey Volk 8e3d398ed7
Merge pull request #2555 from signalwire/stun
[Core] switch_stun_random_string: Coverity 1227623 Calling risky function
2024-07-30 20:15:25 +03:00
Andrey Volk c736458a21 [Core] switch_stun_random_string: Coverity 1227623 Calling risky function 2024-07-30 19:32:28 +03:00
Andrey Volk 9d379b7071 [Core] switch_core_port_allocator_request_port: Coverity 1227622 Calling risky function 2024-07-30 19:24:13 +03:00
Andrey Volk 844cce8595 [mod_mariadb] Coverity 1546237 COPY_INSTEAD_OF_MOVE 2024-07-30 19:16:51 +03:00
Andrey Volk c1354fd73b
Merge pull request #2552 from signalwire/email
[Core] switch_simple_email: Coverity 1227612 Calling risky function
2024-07-30 19:10:46 +03:00
Andrey Volk 0974bd112c [Core] switch_simple_email: Coverity 1227612 Calling risky function 2024-07-30 18:32:01 +03:00
Andrey Volk 3c47eadd28 [mod_v8] SayPhrase: Coverity 1546153 COPY_INSTEAD_OF_MOVE 2024-07-30 18:24:16 +03:00
Andrey Volk 85397f1ba5
Merge pull request #2550 from signalwire/maria_move
[mod_mariadb] mariadb_dsn: Coverity 1546237 COPY_INSTEAD_OF_MOVE
2024-07-30 18:06:07 +03:00
Andrey Volk 6fbb49d66c [mod_mariadb] mariadb_dsn: Coverity 1546237 COPY_INSTEAD_OF_MOVE 2024-07-30 17:36:14 +03:00
Andrey Volk 9f7c64b6fa [Core] switch_stun.c: Coverity 1468480: Out-of-bounds access (OVERRUN) 2024-07-30 15:23:49 +03:00
Andrey Volk 05e58fa909
Merge pull request #2547 from signalwire/overrun
[Core] switch_rtp.c: Coverity 1500271, 1500287: Out-of-bounds access (OVERRUN)
2024-07-30 15:15:25 +03:00
Andrey Volk 11e3cff7cb [Core] switch_find_local_ip: Coverity 1024290 Resource leak. 2024-07-30 02:48:59 +03:00
Andrey Volk 1ff5a6593c [Core] switch_rtp.c: Coverity 1500271, 1500287: Out-of-bounds access (OVERRUN) 2024-07-30 02:31:10 +03:00
Andrey Volk b43ae84564 [Core] switch_rtp_create: Coverity 1227620 Calling risky function 2024-07-30 00:16:15 +03:00
Andrey Volk 4eefe8279b
Merge pull request #2543 from signalwire/risky
[Core] rtp_common_write: Coverity 1227609 Calling risky function
2024-07-30 00:09:24 +03:00
Andrey Volk a99ed5c46f [Core] Introduce SWITCH_RAND_MAX to switch_rand() 2024-07-29 22:26:27 +03:00
Andrey Volk b38d879413 [Core] rtp_common_write: Coverity 1227609 Calling risky function 2024-07-29 17:02:42 +03:00
Andrey Volk 93072c9503 [core] check_rtcp_and_ice() - stringop-overflow: Fix build on Debian Bookworm. 2024-07-25 21:46:40 +03:00
Andrey Volk 74f386bf94
swigall 2024-06-11 14:44:07 +02:00
Andrey Volk 9f362ea315 [Core] Better handle error cases in switch_rand(). 2024-06-07 23:12:20 +03:00
Andrey Volk 0c8b5987f0 [mod_fsv] Fix use of 2gb of memory. Fix compiler warnings preventing builds on Bookworm. 2024-06-07 23:03:24 +03:00
Andrey Volk 3b65e27116 [mod_av] Fix use of switch_size_t in fs_rtp_parse_h263_rfc2190(). 2024-06-07 18:19:52 +03:00
Andrey Volk c7e793c345 [Core] Add new switch_rand() a compliant random number generator API. Add a unit-test.
* [Core] Add new switch_rand() a compliant random number generator API. Add a unit-test.

* Fall back to rand() on unsupported platforms compile time.
2024-06-06 21:14:36 +03:00
Jakub Karolczyk 41bc763d80 [core] Fix scan-build 14 in port allocator 2024-05-19 21:43:55 +03:00
Andrey Volk 85400015b7 [Core] VAD: Add a math sanity check to the switch_vad_process 2024-05-19 21:22:31 +03:00
Andrey Volk 5b1c2688da [Core, mod_sofia] Add switch_uint31_t type. Fix CSeq bigger than 2^31-1. 2024-05-09 22:20:14 +03:00
Andrey Volk 31cf32d91f
Merge pull request #2449 from signalwire/fix_scan_build_mod_amrwb
[mod_amrwb] Fix scan-build 14
2024-04-26 16:37:10 +03:00
Andrey Volk f3ace249f5
Merge pull request #2448 from signalwire/fix_scan_build_mod_avmd
[mod_avmd] Fix scan-build 14
2024-04-26 16:35:53 +03:00
Jakub Karolczyk 84ab90895a [mod_amrwb] Fix scan-build 14 2024-04-26 13:11:54 +00:00
Jakub Karolczyk 597ee613de [mod_avmd] Fix scan-build 14 2024-04-26 12:58:44 +00:00
Jakub Karolczyk ef32d90e91 [mod_av] Fix scan-build 14 2024-04-26 12:41:07 +00:00
Hadžem Hadžić d5ad504723
[mod_vlc] Resolve double mutex lock 2024-04-18 12:06:40 +03:00
Andrey Volk d7d38c7d03
Merge pull request #2381 from signalwire/opus_noop
[mod_opus] Fix status returned by switch_opus_decode(). Should be SWITCH_STATUS_FALSE instead of SWITCH_STATUS_NOOP. Add a unit-test.
2024-02-23 18:36:11 +03:00
Andrey Volk 5ce9057a12
Merge pull request #2392 from signalwire/kazoo
[Core] Remove mod_kazoo from tree
2024-02-22 22:06:32 +03:00
Jakub Karolczyk 49029c8575 [mod_sofia] Set missing CF_3PCC flag 2024-02-22 19:23:40 +03:00
Andrey Volk 70d76bcc0e [Core] Remove mod_kazoo from tree 2024-02-21 21:27:35 +03:00
Andrey Volk 647035c323 [mod_opus] Fix status returned by switch_opus_decode(). Should be SWITCH_STATUS_FALSE instead of SWITCH_STATUS_NOOP. Add a unit-test. 2024-02-06 00:36:35 +03:00
Anton Olofsson 9df3076f29
[mod_event_socket] Check if listener is running before pushing more logs or events to its queue
This fixes a possibility for MAX_MISSED to be exceeded if more logs are
attempted to be pushed to the listener's queue after running kill_listener but
before the listener thread gets CPU time and removes itself.

On a heavily loaded system with a lot of logs in the event dispatch queue
these excessive logs may prove fatal since socket_logger itself will produce
logs about the full queue, resulting in a circular situation of never-ending logs.

The same logic was applied to event_handler after finding the same behaviour
mentioned in signalwire/freeswitch#2143.
2024-01-29 19:05:45 +03:00
Dragos Oancea 8b7a8c4aea [core] SDP: replace SIP lingo in SDP offer/answer. 2024-01-26 21:01:32 +03:00
wmasilva 1c05719100
[Core] softtimer: fix crash in timezones when reloading xml
* switch_time: fix segfault null TIMEZONES_LIST.hash when reloading xml

* Unbind before destroying TIMEZONES_LIST.hash. Protect TIMEZONES_LIST.hash with a mutex that's allocated in core's global runtime.memory_pool so the mutex does not die on softtimer shutdown.

---------

Co-authored-by: Andrey Volk <andywolk@gmail.com>
2024-01-24 22:04:32 +03:00
Dmitry Kunilov d148a3e412
[mod_amr, mod_amrwb] Fix input data corruption
* Fix input data corruption in AMR and AMRWB codecs

* [amr/amrwb] Check encoded frame size before decoding

* [mod_amr, mod_amrwb] Coding guidelines cleanup.

---------

Co-authored-by: Dmitry Kunilov <dmitry.kunilov@upm.solutions>
Co-authored-by: Andrey Volk <andywolk@gmail.com>
2024-01-24 16:50:08 +03:00
mahald d3c60820d7
[mod_amqp] Adjusting to Appropriate Log Level for Message
* [mod_amqp] Adjusting to Appropriate Log Level for Message

Refined Logging Level for FreeSWITCH's mod_amqp: The logging level for the AMQP module in FreeSWITCH has been updated from 'warning' to 'debug'. This adjustment ensures a more suitable level for the log message and eliminates any potential impact on production environments. Previously, the 'warning' level would lead to unnecessary log entries for each individual message, although there was no actual warning condition. This change improves logging efficiency and appropriateness for mod_amqp's operations within FreeSWITCH.

* [MOD_AMQP] Change LogLevel to DEBUG1 as it is more appropriate for this message
2024-01-10 19:01:26 +03:00
Andrey Volk 6ae8ce604a swigall 2023-12-22 17:12:41 +00:00
Jakub Karolczyk 6ea8c96c3d [Core] Reject DTLS packets coming from a source different than the current ICE negotiated path. 2023-12-21 22:56:32 +00:00