mediamtx/internal/conf
Alessandro Ros 44136b3045
Some checks are pending
code_lint / golangci_lint (push) Waiting to run
code_lint / mod_tidy (push) Waiting to run
code_lint / api_docs (push) Waiting to run
code_test / test_64 (push) Waiting to run
code_test / test_32 (push) Waiting to run
code_test / test_highlevel (push) Waiting to run
api: fix crash in /recordings/list (#4040) (#4291)
The API crashed when

- '%path%' is not present in 'recordPath'
- 'all_others' is in 'paths'
- there's at least one recording segment

A recording segment without path is parsed as a segment with an empty
path. This path is then passed to FindPathConf(), that returns an error
in case of empty or invalid paths. This error is not checked for
performance reasons, leading to the crash.

This PR prevents empty or invalid paths from reaching FindPathConf().
2025-02-28 19:04:05 +01:00
..
decrypt allow setting rpiCameraSaturation to 0 (#1651) (#1772) 2023-05-06 23:00:42 +02:00
env rpi: fix passing unsigned integers to component (#3672) 2024-08-21 00:08:54 +02:00
jsonwrapper warn users when non-existent fields are used in conf (#4261) 2025-02-18 15:23:44 +01:00
yamlwrapper warn users when non-existent fields are used in conf (#4261) 2025-02-18 15:23:44 +01:00
auth_action.go warn users when non-existent fields are used in conf (#4261) 2025-02-18 15:23:44 +01:00
auth_internal_users.go rtsp: rewrite authentication around ServerConn.VerifyCredentials (#4267) 2025-02-18 17:54:13 +01:00
auth_method.go warn users when non-existent fields are used in conf (#4261) 2025-02-18 15:23:44 +01:00
conf.go warn users when non-existent fields are used in conf (#4261) 2025-02-18 15:23:44 +01:00
conf_test.go api: fix crash in /recordings/list (#4040) (#4291) 2025-02-28 19:04:05 +01:00
credential.go warn users when non-existent fields are used in conf (#4261) 2025-02-18 15:23:44 +01:00
credential_test.go move RTSP tests into internal/servers/rtsp (#3049) 2024-02-20 19:35:35 +01:00
duration.go warn users when non-existent fields are used in conf (#4261) 2025-02-18 15:23:44 +01:00
duration_test.go accept durations expressed as days (i.e. '1d') (#4094) 2025-01-02 12:44:15 +01:00
encryption.go warn users when non-existent fields are used in conf (#4261) 2025-02-18 15:23:44 +01:00
global.go allow changing default path settings; bump API in order to allow so (#2455) 2023-10-07 23:32:15 +02:00
hls_variant.go warn users when non-existent fields are used in conf (#4261) 2025-02-18 15:23:44 +01:00
ip_networks.go warn users when non-existent fields are used in conf (#4261) 2025-02-18 15:23:44 +01:00
log_destination.go warn users when non-existent fields are used in conf (#4261) 2025-02-18 15:23:44 +01:00
log_level.go warn users when non-existent fields are used in conf (#4261) 2025-02-18 15:23:44 +01:00
optional_global.go warn users when non-existent fields are used in conf (#4261) 2025-02-18 15:23:44 +01:00
optional_path.go warn users when non-existent fields are used in conf (#4261) 2025-02-18 15:23:44 +01:00
path.go api: fix crash in /recordings/list (#4040) (#4291) 2025-02-28 19:04:05 +01:00
record_format.go warn users when non-existent fields are used in conf (#4261) 2025-02-18 15:23:44 +01:00
rtsp_auth_methods.go warn users when non-existent fields are used in conf (#4261) 2025-02-18 15:23:44 +01:00
rtsp_range_type.go warn users when non-existent fields are used in conf (#4261) 2025-02-18 15:23:44 +01:00
rtsp_transport.go warn users when non-existent fields are used in conf (#4261) 2025-02-18 15:23:44 +01:00
rtsp_transports.go warn users when non-existent fields are used in conf (#4261) 2025-02-18 15:23:44 +01:00
string_size.go warn users when non-existent fields are used in conf (#4261) 2025-02-18 15:23:44 +01:00
webrtc_ice_server.go warn users when non-existent fields are used in conf (#4261) 2025-02-18 15:23:44 +01:00