Commit Graph

648 Commits

Author SHA1 Message Date
Dmitry Verenitsin dc5c802627 [libesl] Fix build of tests (#3038) 2026-05-26 23:11:19 +03:00
Dmitry Verenitsin 22de26cc7c Merge commit from fork
* [libesl] Validate `Content-Length` in `esl_recv_event`.

`atol()` accepted negative values, allowing a remote ESL peer to cause
a one-byte heap underwrite (`Content-Length: -1`) or NULL-pointer
dereference (`Content-Length: -2`, since `esl_assert` compiles out
under `NDEBUG`). Reject negative and oversized values, and check
`malloc` failure instead of relying on `assert`.

Cap at `ESL_MAX_CONTENT_LENGTH` (16 MiB).

* [libesl] Add test_recv_event.
2026-05-26 22:28:23 +03:00
Andrey Volk 88fa1f95ca [libesl] Fix heap buffer overflow in esl_buffer_write (#2979) 2026-01-16 23:10:23 +03:00
Andrey Volk b8a16cbc7f [Build-system] Use swig 4.1 2025-07-09 15:00:39 +03:00
Andrey Volk 3a53566eab [mod_python] Remove from tree 2025-03-31 18:49:17 +03:00
Andrey Volk c3dff0ff95 [libesl] Coverity 1512636 Unused value 2025-02-04 02:18:47 +03:00
Andrey Volk 17cd751827 [libesl] Coverity 1589045 Check of thread-shared field evades lock acquisition 2025-02-04 02:18:47 +03:00
Andrey Volk 98a3749c10 [libesl] Coverity 1546296 Check of thread-shared field evades lock acquisition 2025-02-04 02:18:47 +03:00
Andrey Volk 8cfde8ad3c [libesl] Coverity 1294491 Identical code for different branches 2025-02-04 02:18:47 +03:00
Andrey Volk f5509a59e8 [libesl] Coverity 1024721 Unchecked return value from library 2025-02-04 02:18:47 +03:00
Andrey Volk e48b83fbbf [libesl] Coverity 1024719,1024720 Unchecked return value from library 2025-02-04 02:18:47 +03:00
Andrey Volk 62ef2d4822 [libesl] Coverity 1024459 Missing unlock 2025-02-04 02:18:47 +03:00
Andrey Volk 47d87e37b6 [libesl] Coverity 1024285 Dereference before null check 2025-02-04 02:18:47 +03:00
Andrey Volk 5854585d2d [libesl] Coverity 1395572 Logically dead code 2025-02-04 02:18:47 +03:00
Andrey Volk 86c0996fa8 [fs_cli] Coverity 1468564 Buffer not null terminated 2025-02-04 02:18:47 +03:00
Andrey Volk d895fdff60 [esl] 1227669 Resource leak 2025-01-31 18:09:18 +03:00
Andrey Volk 8e694fe10b [Build-System] Upgrade legacy Windows SDK to 10.0 in Visual Studio projects. 2024-12-03 22:59:02 +03:00
Konstantin S. Vishnivetsky 9c7c77e259 [fs_cli] Add: -s key adding log events filter UUID on fs_cli startup
* Add: -s key adding log events filter UUID on fs_cli startup
* Add: long option --set-log-uuid
2022-10-06 12:12:05 +03:00
Andrey Volk e53e8a17c1 [esl] Fix dead nested assignment in esl_recv_event() 2022-08-09 23:19:01 +03:00
Andrey Volk 0fdd5b6727 [Core] Fix switch_event_base_add_header leaking memory when headers are with indexes. Add a unit-test.
* [Unit-tests] Add a test provoking switch_event_add_header to memory leak.
* [Core] Fix switch_event_base_add_header leaking memory when headers are with indexes.
2021-11-03 17:01:05 +03:00
Andrey Volk e44fd2ea38 [mod_python3, ESL py3mod] Add Python3 support. 2021-10-14 23:26:36 +03:00
Noah Mehl d24280c700 [core] Add SEND_RTCP_MESSAGE
We utilize: https://github.com/sipcapture/hepipe.js to monitor RTCP for our calls. As such, it's super helpful to get the sent RTCP data along with the received RTCP data. The new: SEND_RTCP_MESSAGE basically mirrors the existing RECV_RTCP_MESSAGE.
2021-10-01 13:46:34 +00:00
Christian Glombek 513b0fbf00 [mod_avmd, esl/python] Two build fixups (#611) 2021-03-24 19:30:52 +03:00
Andrey Volk 3556119fde [libesl] Fix leak of esl_event_header_t in esl_event_base_add_header(). Code cleanup. 2021-02-17 22:56:10 +03:00
Andrey Volk 940d82ef9b [Build-System] Fix build with MSBuild. 2020-12-23 00:11:37 +04:00
ROBERT MCDOWELL f7f493b2fd [esl] Fix typo in fs_cli.c 2020-06-24 18:07:42 +04:00
Andrey Volk 0275ea1eb4 [Build-System] Use $(DefaultPlatformToolset) so it's easier to build using newer Microsoft Visual Studio versions. 2020-05-25 14:18:25 +04:00
lazedo db95f1e9dd [cJSON] Update to v1.7.12 2020-01-29 00:29:04 +04:00
Andrey Volk f7ec94c9c4 [esl] Add SHUTDOWN_REQUESTED event. 2019-12-31 03:12:04 +04:00
Andrey Volk f664600df4 [fs_cli] Fix unchecked tainted data. 2019-12-31 01:01:45 +04:00
Andrey Volk 93691c60ce Merge pull request #32 from cdosoftei/php7-esl
ESL adjustments for PHP 7+
2019-10-13 00:51:31 +04:00
Sebastian Kemper 8919d581fe [fs_cli] Fix typo, resolves garbled screen
Related to FS-11309.

Commit bc3e1c9e7d introduced a typo that
results in EL_REFRESH never being used, even if available. This can
cause the screen to garble.

This fixes the typo.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-10-12 21:46:09 +02:00
cdosoftei d60193c1ae ESL adjustments for PHP 7+ 2019-10-02 14:05:58 -04:00
Andrey Volk f0da2f2cd4 FS-11903: Fix errors reported by PVS-Studio Static Code Analyzer for libs/esl 2019-07-18 21:27:04 +04:00
Andrey Volk 5daa48953d FS-11896: [core] Fix typo in esl_buffer 2019-07-18 00:26:58 +04:00
Anthony Minessale 1dd4191601 FS-11896: [core] stop media bugs from being possible to add to channels with no media ready, stop transfer recordings upstream to not try to transfer recordings to channels without media ready 2019-07-18 00:26:45 +04:00
Chris Rienzo ca8fa0e1ff FS-11785 [esl] dead assignments in esl_event_serialize
null attribute in esl_buffer_read
	       null attribute in esl_event_base_add_header
	       null attribute in esl_recv_event
2019-07-17 20:22:11 +04:00
Andrey Volk a7477ed0e2 FS-11911: Fix build on Debian Buster 2019-07-15 22:23:25 +04:00
Jeremiah Gowdy 48a6916d90 Fix FS-11611 by commenting locals which are unused if configured with --disable-core-libedit-support 2019-01-14 10:47:15 -08:00
Sergey Safarov 54c142933a FS-11345: Fixed Werror=format-truncation on lib/esl 2018-12-13 07:12:06 +00:00
Anthony Minessale 9844c06169 FS-11225: [freeswitch-core] Crash in fs_cli -- missing check for null pointer #resolve 2018-09-12 21:21:46 +00:00
Anthony Minessale bc3e1c9e7d FS-11225: [freeswitch-core] Crash in fs_cli #resolve 2018-07-24 07:21:56 +00:00
Andrey Volk 671da28796 FS-11263: [Build-System] Move FreeSWITCH build system to Visual Studio 2017 on Windows. 2018-07-24 07:21:55 +00:00
Andrey Volk e7ff903629 FS-11150: [Build-System] Fix broken ESL in .Net project. 2018-07-24 07:21:52 +00:00
Anthony Minessale bb7013817b FS-11138: [freeswitch-core] Leak in ESL client #resolve 2018-07-24 07:21:51 +00:00
Muteesa Fred 9fc898daac FI-393 [fs_cli banner] this commit changes the text on the fs_cli banner 2018-06-14 19:38:05 +00:00
Trever L. Adams 052c7c3061 FS-9785: Fix format-truncation warnings for systems that treat it as an error. 2017-06-29 21:35:38 -06:00
Mike Jerris 3347820c1e FS-10427: move libesl to use swig3.0 so we can reswig on debian9 2017-06-27 12:10:04 -05:00
Mike Jerris 417b1d2a9a FS-10036: fix include 2017-03-15 13:33:03 -05:00
Mike Jerris e4e4fd2f9f FS-10036: add back in patch from FS-4285. Still need to address this upstream 2017-03-08 20:50:34 -06:00