1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-06-23 06:25:24 +00:00
Commit Graph

1240 Commits

Author SHA1 Message Date
Thomas B. Ruecker
63865a70cd Spelling fix, thanks to Ukikie 2018-05-05 07:23:03 +00:00
Philipp Schafft
dcad0b1b5d Fix: Fixed a segfault when xsltApplyStylesheet() returns error 2018-05-05 07:22:44 +00:00
Philipp Schafft
32b4d549e9 Fix: Do not segfaul on bad Opus streams 2018-04-21 10:30:42 +00:00
Philipp Schafft
a0ab967fb9 Fix: Corrected response and fixed TLS for 416 Request Range Not Satisfiable responses 2018-04-21 10:29:44 +00:00
Philipp Schafft
7c51a3aae7 Fix: Unbreak TLS for ICECAST_PROTOCOL_SHOUTCAST source clients 2018-04-21 10:13:04 +00:00
Marvin Scholz
4053321b0c Fix that global listener count could be negative under certain circumstances
This fixes a bug that could cause the global listener count of Icecast to
be negative. This was caused due to wrong handling of errors in the
format_prepare_headers function.

Fixes: #2199

Thanks a lot to Simeon Völkel (0xBD4E031CDB4043C9) for reporting
and investigating the bug.
2018-04-16 13:42:32 +00:00
Philipp Schafft
72f0c83540 Fix: Send "Content-Length: 0" on 100-continue 2018-04-13 13:46:58 +00:00
Philipp Schafft
4c6d778e9a Fix: Do not send 100-continue in plain over TLS sockets
This fixes the problem of Icecast2 sending 100-continue responses in plain
on TLS sockets (and thereby breaking the TLS connection).
This is not a complete fix for the 100-continue behavior. However it
allows to use TLS with 100-continue.
2018-04-13 11:18:52 +00:00
Philipp Schafft
5f9850fc83 Fix: Added needed code to announce Opus streams as such to yp.
This fixes the situation at least for Opus. It should be checked
if the same problem applies to other codecs as well.
If so, maybe a better solution should be considered for 2.5.x.
2016-12-27 11:49:21 +00:00
Philipp Schafft
59e5a48776 Cleanup: Updated usage of global.running to be more clear 2016-12-07 18:42:54 +00:00
Philipp Schafft
cc931660b9 Fix: Avoid invalid locking in signal handlers.
This should also be fixed in master.

Closes: #2299
2016-12-07 18:38:54 +00:00
Philipp Schafft
1a4bb8865b Workaround: This avoids libspeex printing warnings on Opus streams.
libspeex reports warnings in case of oddnesses with the data to stderr.
However Icecast2 uses those functions in it's codec probeing process.
This way libspeex will write messages to a posibily reused random handle.

This is clearly a bug by package maintainers of libspeex.
See the source code of this change as well as libspeex's source code
as reference.
2016-10-29 18:35:19 +00:00
Philipp Schafft
fa1915c46d Fix: Fixed regression introduced by r19250.
This fixes the regression introduced by r19250 (461a537561).
The fix checks if the source client is actually known before printing it's IP-Address.

See also: #2016
2016-09-04 10:11:01 +00:00
Philipp Schafft
13f50dae4d Fix: do not allow unescaped strings in XML output.
This is a backport of d739c65e54.

This patch fixes the output generating for XML. It will ensure all
strings are escaped correctly by using text node creation function
not the normal raw XML subnode function.

See #2255
2016-02-10 10:00:30 +00:00
Thomas B. Ruecker
28748f619f add hilighting for better readability 2015-12-28 18:37:55 +00:00
Thomas B. Ruecker
7a49eaa36e Update documentation for 2.4.3
Mostly just bumping the version number.
Fixed up changes file to match ChangeLog.
2015-12-27 18:06:13 +00:00
Thomas B. Ruecker
f5183f8cad Update ChangeLog with info about Windows release 2015-12-27 17:15:45 +00:00
Thomas B. Ruecker
a82356461e Bump version to 2.4.3 2015-12-27 17:14:58 +00:00
Philipp Schafft
95516eb0b9 Fix: remove tailing dots in URI.
This works around the problem that windows ignores tailing dots.
This way you could trick Icecast2 to send a XSLT file as plain text.

Please test.

Closes: #2247
2015-12-24 00:48:47 +00:00
Thomas Ruecker
ceec48201a Applying docdir fix (needed by distro packaging)
So that I don't have to carry it over from the 2.4.1 packaging.
2015-04-08 13:08:45 +03:00
Thomas Ruecker
270a9628de Updated ChangeLog 2015-04-08 13:07:16 +03:00
Philipp Schafft
27abfbbd68 Fix: Do not crash URL Auth is used with stream_auth and no credentials are given
This fixes a crash (NULL reference) in case URL Auth is used
and stream_auth is trigged with no credentials passed by the client.
Username and password is now set to empty strings and transmited to
the backend server this way.

See #2191 for more details and to keep track of the problem.

Closes: #2191, DEB#782120
2015-04-08 09:09:26 +00:00
Philipp Schafft
3baa4e46aa Fix: Let util_url_escape() handle NULL parameter.
This let util_url_escape() handle NULL passed as parameter.
In case the parameter is NULL it will also return NULL.

This patch also does some cleanup of the code such as migration
away from int and thus avoiding future failtures.
2015-04-08 09:02:20 +00:00
Thomas Ruecker
170b75b31b Updated version number to 2.4.2, prep for release
This is going to be a strict security release
2015-04-08 11:32:27 +03:00
Thomas Ruecker
9f43bf78f9 applying curl fix for win32 from master
17a3e5932cde41df7c4c1d0f42919c9ddfb99274
2015-04-08 11:18:40 +03:00
Thomas B. "dm8tbr" Ruecker
1a3fd18cd4 meh, one more fix, remove spec from Makefile
svn path=/icecast/trunk/icecast/; revision=19326
2014-11-19 13:59:27 +00:00
Thomas B. "dm8tbr" Ruecker
d1ee618e10 This is Spaaarrr^w Icecast 2.4.1!
svn path=/icecast/trunk/icecast/; revision=19325
2014-11-19 13:55:58 +00:00
Thomas B. "dm8tbr" Ruecker
92dfbc5be5 Makefile.am and configure.in for new docs
svn path=/icecast/trunk/icecast/; revision=19324
2014-11-19 13:41:09 +00:00
Thomas B. "dm8tbr" Ruecker
b465436a24 deleting files that erroneously ended up in SVN
svn path=/icecast/trunk/icecast/; revision=19323
2014-11-19 12:28:30 +00:00
Thomas B. "dm8tbr" Ruecker
75994eeb5e Removing unmaintained RPM spec file
svn path=/icecast/trunk/icecast/; revision=19322
2014-11-19 12:18:49 +00:00
ePirat
95e7e42b49 Set PATH_MAX to 4096 if not defined (patch by Svante Signell <svante.signell@gmail.com>)
See: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=767542

svn path=/icecast/trunk/icecast/; revision=19321
2014-11-19 11:30:58 +00:00
ePirat
abc75687dc Docs: 2.4.1 docs added
svn path=/icecast/trunk/icecast/; revision=19319
2014-11-18 19:57:21 +00:00
ePirat
e7d68fd3b0 Move declarations to begin of block
(patch by Andreas Mieke)

svn path=/icecast/trunk/icecast/; revision=19318
2014-11-18 17:43:34 +00:00
Thomas B. "dm8tbr" Ruecker
dbab3fd07b corrected email address
svn path=/icecast/trunk/icecast/; revision=19317
2014-11-18 16:18:08 +00:00
ePirat
42f763bf37 Experimental fix for memory errors when using a lot of headers, see #1885
svn path=/icecast/trunk/icecast/; revision=19316
2014-11-18 10:17:16 +00:00
Thomas B. "dm8tbr" Ruecker
c8791e3c79 Comments in <http-headers> break things ATM
Moved the comment out to avoid this bug.
Needs to be checked.

svn path=/icecast/trunk/icecast/; revision=19315
2014-11-18 08:51:03 +00:00
Thomas B. "dm8tbr" Ruecker
9cd2e5c48e Preparing for 2.4.1 release.
We are now code complete plus an additional security fix.
Some testing remains before final release.

svn path=/icecast/trunk/icecast/; revision=19314
2014-11-17 22:19:38 +00:00
Philipp Schafft
baee2d0c7f subset of my earlier patch so it can go into 2.4.1: disconnects stdio of <on-[dis]connect> scripts from random filehandles. closes #2087
svn path=/icecast/trunk/icecast/; revision=19313
2014-11-17 19:20:57 +00:00
Philipp Schafft
d06b6b1846 patch to fix regression on header size with large headers introduced by support of <server-id> and <http-headers>. This should ensure we have at least space for 2kB of extra headers. Depending on function and call we may have much more space.
Please test this very carefully.
Some pointers what should be in the tests (NOT complet list):
- request to 'static' web/ and admin/ pages.
- requests to playlist generation.
- requests to streams.
- requests to admin/ manipulation functions.
- test everything with at least 8kB of extra headers, then reduce in 1kB (or 512B) steps.
- see if response is correct OR 500 is returned.
- run under valgrind or similar to see no buffer overflow or similiar will happen.
- take a cookie!

svn path=/icecast/trunk/icecast/; revision=19300
2014-11-10 10:46:55 +00:00
Thomas B. "dm8tbr" Ruecker
ad1f7bca2e Update minimal config to contain ACAO * header
svn path=/icecast/trunk/icecast/; revision=19299
2014-11-10 08:23:34 +00:00
Thomas B. "dm8tbr" Ruecker
35fce69c4a convert TABstops to spaces for consistency
svn path=/icecast/trunk/icecast/; revision=19298
2014-11-10 08:20:30 +00:00
Thomas B. "dm8tbr" Ruecker
58fdef4856 Update default config, SSL, headers, default-mount
svn path=/icecast/trunk/icecast/; revision=19297
2014-11-10 06:25:15 +00:00
Thomas B. "dm8tbr" Ruecker
7ecf0b04da small email fix
svn path=/icecast/trunk/icecast/; revision=19296
2014-11-09 11:47:46 +00:00
Thomas B. "dm8tbr" Ruecker
298b1ac79a Once more updated string, same Qualys results.
String taken from:
https://wiki.mozilla.org/Security/Server_Side_TLS#Intermediate_compatibility_.28default.29

svn path=/icecast/trunk/icecast/; revision=19295
2014-11-09 10:55:29 +00:00
Thomas B. "dm8tbr" Ruecker
d767b9e7f2 Clean up some things in the default config file.
svn path=/icecast/trunk/icecast/; revision=19294
2014-11-09 09:13:59 +00:00
Thomas B. "dm8tbr" Ruecker
68fbfcbf87 updated changelog
svn path=/icecast/trunk/icecast/; revision=19293
2014-11-08 20:39:31 +00:00
Thomas B. "dm8tbr" Ruecker
574274d22e Make sure email address is up to date.
svn path=/icecast/trunk/icecast/; revision=19292
2014-11-08 17:13:48 +00:00
Thomas B. "dm8tbr" Ruecker
24b7825adb Applying patch, HTTP PUT requires content-type
In case of SOURCE we are lenient and thus quite some source clients
don't send a proper content-type, especially if they only support mp3.

This was meant to be introduced in 2.4.0 already, sadly we missed it.

All source clients MUST send proper content-type after migrating to 
Icecast HTTP PUT protocol.

closes #2082

svn path=/icecast/trunk/icecast/; revision=19288
2014-11-08 16:23:26 +00:00
Philipp Schafft
06977d788c Fixed regression introduced in r18356 (CVE-2011-4612): client duration time is now correctly logged. PRIu64 MUST NOT be used with log_write_direct() as depending on platform PRIu64 may be using something not supported by __vsnprintf() of log/log.c. close #2081, see r18356
svn path=/icecast/trunk/icecast/; revision=19287
2014-11-08 13:34:45 +00:00
Philipp Schafft
d959c20f11 make use of sizeof() not explicit magic numbers
svn path=/icecast/trunk/icecast/; revision=19286
2014-11-08 12:28:17 +00:00