Files
freeswitch/tests/unit
Dmitry Verenitsin 68b340f5f5 [core] Confine MSRP remote file-selector name to the receive directory
Without an explicit path, `msrp_recv_file_function()` joined the
`sip_msrp_file_name` channel variable, taken from the remote SDP
`a=file-selector` name, onto the base directory unchanged, so a name
with directory components opened a file outside it. Reduce the name
to its last path component with `switch_cut_path()` and reject an
empty name, `.` and `..`.

`test_switch_cut_path_strips_directory_components` covers the path
reduction the receive path relies on.
2026-11-18 22:36:36 +05:00
..
2026-08-08 17:48:05 +03:00
2019-11-21 22:06:14 +04:00
2026-05-26 22:02:42 +03:00
2024-12-03 21:30:46 +01:00
2024-10-11 20:16:39 +02:00
2024-12-03 21:30:46 +01:00
2026-08-08 19:47:47 +03:00
2026-08-08 18:29:25 +03:00
2021-04-27 13:54:32 -06:00
2026-08-08 21:02:15 +03:00
2026-08-08 17:48:05 +03:00
2026-05-26 22:02:42 +03:00
2024-12-03 21:30:46 +01:00

FreeSWITCH unit tests should be kept as shallow unit tests and micro
benchmarks testing functionality exposed through libfreeswitch.

Requirements for a new unit tests: 

1. Tests must use switch_test.h framework