Commit Graph

18 Commits

Author SHA1 Message Date
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 d08424384b
[Core] Coverity: 1024552 Logically dead code 2023-10-05 18:03:32 +03:00
Andrey Volk 9347c96712 [Core] check_ice: sanitize second field of the candidates. Add new switch_is_uint_in_range() API. 2023-08-13 15:49:58 +03:00
Andrey Volk 6b67970bbb [Core] Add new switch_channel_get_variable_strdup() and switch_channel_get_variable_buf() APIs that avoid allocating channel variables in a session's memory pool. 2023-07-28 22:29:22 +03:00
Andrey Volk b2e78c90e7 [Build-System] Fix MD5 on Windows. Add a unit-test. 2023-01-18 02:55:34 +03:00
Andrey Volk f71a56022a [Core] switch_mprintf: Increase the size of loop variables in the printf() implementation. Add unit-tests disabled by default. 2022-12-09 23:11:25 +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 6da4f147de [Unit-Tests] Fix switch_core_video test to use temporary path for generated files and clean them up. Ignore test runtime dirs. 2021-10-23 22:00:25 +03:00
Andrey Volk bd7b76bacf [Core] Add new switch_core_hash_insert_pointer(switch_hash_t *hash, const void *data) API to be able to insert data into a hash with an auto-generated key based on the data pointer. Cleanup switch_loadable_module_process() to not generate hash keys for stored events itself. Add unit-test. 2021-10-19 20:35:12 +03:00
Andrey Volk 1b048a8a97 [Core, mod_hash] Add two APIs switch_core_hash_insert_alloc_destructor and switch_core_hash_insert_dup_destructor. Code cleanup in mod_hash. Add unit-tests. 2021-10-19 20:26:50 +03:00
Andrey Volk e42ebbb33f [Core] scan-build: Fix false-positive use-after-free in switch_xml_free_attr(). Add unit test. 2021-10-19 20:15:58 +03:00
Andrey Volk 95fb8c7773 [Core] Fix crash on removing xml attributes. Add unit test. 2021-10-19 20:15:57 +03:00
suchi.sahoo 25823013f8 [Core] Add switch_safe_atol() and switch_safe_atoll() functions. Add a unit-test. 2021-08-13 20:05:29 +03:00
Chris Rienzo 311e932df5 [core, mod_commands] Execute command under shell when using spawn in switch_system(). 2021-07-16 17:34:53 +03:00
Andrey Volk 9aee9b8e24 [Core, mod_commands] Add posix_spawn replacement for the system call. Add unit-tests. 2021-07-16 17:34:42 +03:00
Andrey Volk fd27504a7d [Core] Add switch_digest(), switch_digest_string() APIs. Add unit-tests. 2021-04-12 01:03:15 +03:00
Andrey Volk 913551315b [Core] switch_core_port_allocator: Replace getaddrinfo() (may get stuck) with switch_sockaddr_new() and fix IPv6. 2020-12-17 21:15:14 +04:00
Andrey Volk 97f42d429f FS-11505: [core] System call with output capture on Linux and Windows without fork. Add switch_core test. 2018-12-20 10:19:27 -05:00