mediamtx/internal
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
..
api rtsp: rewrite authentication around ServerConn.VerifyCredentials (#4267) 2025-02-18 17:54:13 +01:00
auth rtsp: rewrite authentication around ServerConn.VerifyCredentials (#4267) 2025-02-18 17:54:13 +01:00
certloader automatically reload TLS certificates when they change (#3598) 2024-08-04 14:12:08 +02:00
conf api: fix crash in /recordings/list (#4040) (#4291) 2025-02-28 19:04:05 +01:00
confwatcher move SRT tests into internal/servers/srt (#3037) 2024-02-17 20:42:41 +01:00
core rtsp: rewrite authentication around ServerConn.VerifyCredentials (#4267) 2025-02-18 17:54:13 +01:00
defs rtsp: rewrite authentication around ServerConn.VerifyCredentials (#4267) 2025-02-18 17:54:13 +01:00
externalcmd fix closing some custom commands on Windows (#3981) 2025-01-11 20:40:25 +01:00
formatprocessor switch to mediacommon/v2 (#4259) 2025-02-17 14:54:58 +01:00
hooks move hooks into dedicated package (#2746) 2023-11-26 22:06:07 +01:00
logger remove deprecated build flags syntax (#3930) 2024-11-06 15:07:33 +01:00
metrics rtsp: rewrite authentication around ServerConn.VerifyCredentials (#4267) 2025-02-18 17:54:13 +01:00
playback rtsp: rewrite authentication around ServerConn.VerifyCredentials (#4267) 2025-02-18 17:54:13 +01:00
pprof rtsp: rewrite authentication around ServerConn.VerifyCredentials (#4267) 2025-02-18 17:54:13 +01:00
protocols switch to mediacommon/v2 (#4259) 2025-02-17 14:54:58 +01:00
recordcleaner do not allocate recordcleaner.Cleaner when not needed (#4232) 2025-02-07 17:11:20 +01:00
recorder switch to mediacommon/v2 (#4259) 2025-02-17 14:54:58 +01:00
recordstore api: fix crash in /recordings/list (#4040) (#4291) 2025-02-28 19:04:05 +01:00
restrictnetwork move static sources into dedicated package (#2616) 2023-10-31 14:19:04 +01:00
rlimit remove deprecated build flags syntax (#3930) 2024-11-06 15:07:33 +01:00
servers rtsp: rewrite authentication around ServerConn.VerifyCredentials (#4267) 2025-02-18 17:54:13 +01:00
staticsources fix ARM compilation (#4280) 2025-02-27 20:13:18 +01:00
stream remove useless checks (#4213) 2025-01-31 20:57:50 +01:00
test switch to mediacommon/v2 (#4259) 2025-02-17 14:54:58 +01:00
testapidocs warn users when non-existent fields are used in conf (#4261) 2025-02-18 15:23:44 +01:00
testhighlevel rtsp: rename encryption, protocols, serverKey, serverCert into rtspEncryption, rtspProtocols, rtspServerKey, rtspServerCert (#4078) 2024-12-25 18:26:14 +01:00
unit route original timestamps without converting to durations (#3839) 2024-10-07 17:59:32 +02:00